diff options
| author | Yuval Adam <_@yuv.al> | 2025-06-27 10:41:40 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2025-06-27 10:41:40 +0200 |
| commit | c896691084bfc786dc1780ce36fd71e6f7ab9d60 (patch) | |
| tree | 0e60f238bb42c24441dfbfbcab6f240c0d4d0d67 /astro.config.mjs | |
| parent | 8403930448013787bd0a986ece086f20ef6d9a57 (diff) | |
Migrate from react to svelte
Diffstat (limited to 'astro.config.mjs')
| -rw-r--r-- | astro.config.mjs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/astro.config.mjs b/astro.config.mjs index 03d6a57..dffb7fe 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,7 +1,7 @@ // @ts-check import { defineConfig } from 'astro/config'; import tailwindcss from '@tailwindcss/vite'; -import react from '@astrojs/react'; +import svelte from '@astrojs/svelte'; import cloudflare from '@astrojs/cloudflare'; // https://astro.build/config @@ -13,16 +13,9 @@ export default defineConfig({ } }), vite: { - plugins: [tailwindcss()], - 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", - } : undefined, - }, + plugins: [tailwindcss()] }, - integrations: [react()], + integrations: [svelte()], devToolbar: { enabled: false, }, |
