It would be on the request.cf object
It would be on the request.cf object





wrangler pages deploy <directory>node:buffer, and Astro recommends using the ssr: { external: ["node:buffer"] -- cool. But is the solution if something imports fs to seriously reach out to the author? Is there no better solution? Why can't I just build it with the polyfills in there?node:fs/whatever stuff.node:fs and build, but cloudflare can't?fs from appwritenode:fs, even if it emulates it it doesn't matter, I don't need or use the file systembuild -> Cloudflare -> Astro even on static pages and then Cloudflare is telling me it knows more than me on pages it has no business being a part of.thirdweb, and appwrite/node-appwrite, I can make a reproduction, but really it seems like if you just install something like appwrite that requires fs instead of node:fs, it would fail no?export default defineConfig({
site: "https://mysite.com",
plugins: [
tsconfigPaths(),
nodePolyfills({
// Specific modules that should not be polyfilled.
exclude: [],
// Whether to polyfill specific globals.
globals: {
Buffer: true, // can also be 'build', 'dev', or false
global: true,
process: true,
},
// Whether to polyfill `node:` protocol imports.
protocolImports: true,
}),
],