`fetch` not working in web worker in production
Unanswered
American Curl posted this in #help-forum
American CurlOP
I have a web worker that is making fetch calls and then running some wasm code (so that it doesn''t block the main thread).
Everything works great. But when I run
If I comment out all the
Does anyone know what's going on?
Do I need to add something to my next config
Everything works great. But when I run
pnpm build && pnpm start the worker doesn't work. If I comment out all the
fetch calls in the web worker , then I see console.logs in the web worker's onmessage handler but if I leave the fetch calls in there, then I don't see the console log at all.Does anyone know what's going on?
Do I need to add something to my next config