feat: Add Vite configuration with alias for React DOM server

This commit is contained in:
GitHub Copilot
2025-04-24 17:31:21 -04:00
parent ecf1632f66
commit 01e8090fc2

View File

@@ -10,4 +10,12 @@ export default defineConfig({
output: "server", output: "server",
adapter: cloudflare(), adapter: cloudflare(),
integrations: [react()], integrations: [react()],
vite: {
resolve: {
alias: {
"react-dom/server": "react-dom/server",
"react-dom/server.browser": "react-dom/server",
},
},
},
}); });