Is it possible to configure wrangler to

Is it possible to configure wrangler to open something other than localhost when working locally? [wrangler:inf] Ready on http://localhost:8788, I'd like it to open a local alias instead of localhost but still maintain the protocol and port, e.g., http://<local-alias>:8788... it's mainly to get around CORS stuff ๐Ÿ™„
5 Replies
Billy
BillyOPโ€ข11mo ago
GitHub
Expose public URLs for wrangler dev ยท cloudflare workers-sdk ยท Disc...
๐Ÿ’ก Feature request Enable public access of wrangler dev workloads. Describe the feature This feature request is the opposite of cloudflare/wrangler-legacy#1820 (and any other "run workers local...
Adam
Adamโ€ข11mo ago
You can edit etc/hosts with any custom domain. The issue you're referencing is to expose local URLs to the public.
Billy
BillyOPโ€ข11mo ago
thanks @Adam , I do have the etc/hosts updated already but I want wrangler dev to open that alias instead of localhost.
Adam
Adamโ€ข11mo ago
ah...we don't have anything like that currently.
Billy
BillyOPโ€ข11mo ago
Ok, thanks for the update. Is that a reasonable request I should open somewhere official or is it silly?
Want results from more Discord servers?
Add your server