Yeah also having issues with `Buffer` is not defined
Yeah also having issues with
Buffer is not definednpm i buffer. There are 4167 other projects in the npm registry using buffer.
id and preview_id it just shows up as empty in dev.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 flagpreview_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 reactnpm i bufferpreview_idpreview_idpreview_idpreview_idhttp://127.0.0.1:8787<stuff>.workers.dev<stuff>.workers.devevent.request.url.originworkers.dev127.0.0.1:87871.19.7event.request.url'./'