You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @ts-checkimport{defineConfig}from"astro/config";importcloudflarefrom"@astrojs/cloudflare";importreactfrom"@astrojs/react";// https://astro.build/configexportdefaultdefineConfig({output: "server",adapter: cloudflare(),integrations: [react()],vite: {resolve: {// Use react-dom/server.edge instead of react-dom/server.browser for React 19.// Without this, MessageChannel from node:worker_threads needs to be polyfilled.alias: import.meta.env.PROD&&{"react-dom/server": "react-dom/server.edge",},},},});
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
originally shared facebook/react#31827 but I think it makes sense to be an issue here as I doubt its a react issue
It doesn't happen during build but instead during the "Deploying to Cloudflare's global network" step
What's the expected result?
The error should not happen
Link to Minimal Reproducible Example
https://github.com/phase/test-astro-react19-cf-workers (thank you @phase)
Participation
The text was updated successfully, but these errors were encountered: