From 1a5ce98ce79e1b768ad028a0311826a306b81f27 Mon Sep 17 00:00:00 2001 From: techpixel <68567672+techpixel@users.noreply.github.com> Date: Wed, 21 Jan 2026 18:37:43 -0500 Subject: [PATCH] fix: prisma bundling --- astro/astro.config.mjs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/astro/astro.config.mjs b/astro/astro.config.mjs index f4a2fce..aae1fc8 100644 --- a/astro/astro.config.mjs +++ b/astro/astro.config.mjs @@ -14,7 +14,16 @@ export default defineConfig({ integrations: [react(), svelte()], vite: { - plugins: [tailwindcss()] + plugins: [tailwindcss()], + build: { + rollupOptions: { + external: [/^@prisma\/client\/runtime\/.*/] + } + }, + ssr: { + noExternal: ['@prisma/client'], + external: ['@prisma/client/runtime/query_compiler_fast_bg.postgresql.mjs'] + } }, adapter: node({