wha's the diff between `nodejs_compat` and `node_compat` flags?
wha's the diff between
nodejs_compat and node_compat flags?node_compat is old and polyfills a bunch of stuff. It's not great, a bit slow, adds to bundle size, and the polyfills aren't perfect. nodejs_compat is Cloudflare's actual Node.js compatibility built right into the workerd runtime. There's some DX pain aroound them both existing right now which I wrote up a bit at https://github.com/cloudflare/workers-sdk/issues/4082nodejs_compat these days, unless you're using something legacy that specifically needs node_compat, like pgnode_compat, only nodejs_compatnode_compat: https://github.com/timothymiller/t4-app/blob/93c8ee3dfcfa181ac7d66c23048cbf7d13648e26/packages/api/wrangler.toml#L4node_compat, not surenodejs_compat, drop node_compat and import from the node: prefix if you can, thoughnode: prefix?node_compat, you might be okay, but then you can't use anything from nodejs_compat. This is unfortunately where the DX starts to really decline, and the crux of my issue at https://github.com/cloudflare/workers-sdk/issues/4082. It's not a great experience.getBindingsProxy, so you could usggest to the Nuxt team that they integrate that, if they aren't already working on itawait response.text(), or await response.json() etc. are common ways to get the body. More here: https://developer.mozilla.org/en-US/docs/Web/API/Response#instance_methods. What does the response contain exactly?workers-sdk repo for examples though: https://github.com/cloudflare/workers-sdk/tree/main/fixtures/pages-functions-app./functions dir) code.wrangler pages functions build ./functions --sourcemap command generates two file index.js & index.js.map which seems something what I need.index.js reveals that it doesn't compile only ./functions code, but also the contents of ./src folder.Compile a folder of Cloudflare Pages Functions into a single Worker./functions into a worker file + sourcemaps and upload the generated worker afterwards?wrangler pages dev don't support proxying 302 redirects?workerd