`preview_id` is optional, it'll use `id` for `wrangler dev` too if omitted - but this is only true f
preview_id is optional, it'll use id for wrangler dev too if omitted - but this is only true for wrangler dev w/o the --local flag--localpreview_id without --local it complains, but now using the same id for id and preview_id works. Thanks for the tip!
wrangler dev. I'm seeing a behaviour where the tunnel gets created and I can access my worker on the localhost URL http://127.0.0.1:8787 , but from the worker code's perspective the request came from a <stuff>.workers.dev URL. I'm trying to use the value of event.request.url.origin to send something back to the requester but since its pointing at workers.dev instead of localhost that doesnt work when running locally127.0.0.1:8787 but the event object reports it as <stuff>.workers.dev1.19.7 to be precisewrangler dev since it seems like a bit of a pitfallevent.request.url object to always reflect the actual origin of the request, even if there is proxying happening'./'
I just noticed wrangler uses reacthttp://127.0.0.1:8787event.request.url.originworkers.dev