prisma.ts und vile.config

This commit is contained in:
titver968
2025-11-27 15:26:22 +01:00
parent 9173229ad1
commit 0f9fbbf177
2 changed files with 19 additions and 3 deletions

View File

@@ -3,10 +3,10 @@ import { defineConfig } from 'vite';
export default defineConfig({
plugins: [sveltekit()],
ssr: {
noExternal: ['@prisma/client']
},
optimizeDeps: {
exclude: ['@prisma/client']
},
ssr: {
noExternal: process.env.NODE_ENV === 'production' ? ['@prisma/client'] : [],
}
});