Yeah the `legacy_env` or "legacy mode" is on by default. That may change in the future, but makes W2

Yeah the legacy_env or "legacy mode" is on by default. That may change in the future, but makes W2 adoption easier for Legacy Workers 🙂
9 Replies
Unknown User
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
Isaac McFadyen
Isaac McFadyen•4y ago
Make sure you have an AAAA record at that subdomain with a name of api and a value of 100::
Unknown User
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
Isaac McFadyen
Isaac McFadyen•4y ago
It's in the documentation somewhere (let me find it, one sec), but basically what it is is a "discard route" so that traffic from your client is directed towards Cloudflare. Then Cloudflare intercepts it and directs it towards the Worker. Under this section. https://developers.cloudflare.com/workers/get-started/guide/#optional-configure-for-deploying-to-a-registered-domain
Unknown User
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
Isaac McFadyen
Isaac McFadyen•4y ago
What version of wrangler? wrangler1 or wrangler2?
Unknown User
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
JacobMGEvans
JacobMGEvansOP•4y ago
That is Wrangler 1 To use Wrangler 2, it is npm i wrangler@beta
Unknown User
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?