fix: prisma bundling

This commit is contained in:
techpixel 2026-01-21 18:37:43 -05:00
parent 52b9303dd4
commit 1a5ce98ce7
No known key found for this signature in database
GPG key ID: 34D6A091A305A398

View file

@ -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({