fix: resolve Prisma __dirname ESM error in production Docker build
Lint & Test / lint-and-check (push) Failing after 5m5s
Release / docker (push) Successful in 1m23s
Release / release (push) Successful in 4s
Lint & Test / test (push) Has been skipped

Move @prisma/client and prisma to dependencies so adapter-node
externalizes them instead of bundling. Add ssr.external config
for Vite to prevent inlining Prisma's CJS engine loader.
This commit is contained in:
2026-04-10 21:17:39 +03:00
parent 85b4576991
commit 1f7e040049
3 changed files with 38 additions and 102 deletions
+4
View File
@@ -4,6 +4,10 @@ import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
ssr: {
noExternal: [],
external: ['@prisma/client', '.prisma/client']
},
server: {
port: 5181,
host: '0.0.0.0'