From ed2bb7b8e534b3c12b5242a9b9a0759c46ffc0f3 Mon Sep 17 00:00:00 2001 From: Ebonian Date: Sun, 8 Oct 2023 04:45:08 +0700 Subject: [PATCH] chore: fix react icons external package issue --- astro.config.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/astro.config.mjs b/astro.config.mjs index ef72e84..6b5e048 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -9,4 +9,9 @@ import tailwind from '@astrojs/tailwind'; export default defineConfig({ site: 'https://example.com', integrations: [mdx(), sitemap(), react(), tailwind()], + vite: { + ssr: { + noExternal: ['react-icons'], + }, + }, });