From 24174c58814b58e1665a0781e8af0561ac30bbb2 Mon Sep 17 00:00:00 2001 From: Andrew Patton Date: Wed, 24 Jul 2024 09:24:08 -0700 Subject: [PATCH] =?UTF-8?q?Add=20ssr.noExternal=20to=20fix=20docs=20site?= =?UTF-8?q?=E2=80=99s=20build=20issues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit based on https://github.com/algolia/docsearch/issues/2259 --- apps/site/vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/site/vite.config.ts b/apps/site/vite.config.ts index acdd0445..5704fda7 100644 --- a/apps/site/vite.config.ts +++ b/apps/site/vite.config.ts @@ -18,6 +18,7 @@ export default defineConfig({ tsconfigPaths(), ], ssr: { + noExternal: ["@docsearch/react", "@markdoc/markdoc"], resolve: { conditions: ["workerd", "worker", "browser"], }, @@ -28,4 +29,4 @@ export default defineConfig({ build: { minify: true, }, -}); \ No newline at end of file +});