Issues with supabase + cloudflare workers + rolldown
Hi, I am having trouble using the preview and deploy with supabase installed with cloudflare workers, react-router and rolldown
I get the error
Error: Calling `require` for "stream" in an environment that doesn't expose the `require` function. at async Object.fetch (file:///C:/Projects/psps/repro/node_modules/.pnpm/miniflare@4.20251011.1/node_modules/miniflare/dist/src/workers/core/entry.worker.js:4481:22)
Error: Calling `require` for "stream" in an environment that doesn't expose the `require` function. at async Object.fetch (file:///C:/Projects/psps/repro/node_modules/.pnpm/miniflare@4.20251011.1/node_modules/miniflare/dist/src/workers/core/entry.worker.js:4481:22)
when trying to load the preview page the require is originating from the lib-*.js file and looks like that comes from supabase somehow
if i switch to roll up, it works. not sure if this is an issue with rolldown or not.
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.