From 01e8090fc2079aabf38e6da5e6575a2a7fc256d6 Mon Sep 17 00:00:00 2001 From: GitHub Copilot Date: Thu, 24 Apr 2025 17:31:21 -0400 Subject: [PATCH] feat: Add Vite configuration with alias for React DOM server --- astro.config.mjs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index b7ba990..c5a9652 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -10,4 +10,12 @@ export default defineConfig({ output: "server", adapter: cloudflare(), integrations: [react()], -}); \ No newline at end of file + vite: { + resolve: { + alias: { + "react-dom/server": "react-dom/server", + "react-dom/server.browser": "react-dom/server", + }, + }, + }, +});