From c896691084bfc786dc1780ce36fd71e6f7ab9d60 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Fri, 27 Jun 2025 10:41:40 +0200 Subject: Migrate from react to svelte --- astro.config.mjs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'astro.config.mjs') 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, }, -- cgit v1.3.1