Files
alexei.dolgolyov 1f7e040049
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
fix: resolve Prisma __dirname ESM error in production Docker build
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.
2026-04-10 21:17:39 +03:00

22 lines
454 B
TypeScript

import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
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'
},
test: {
include: ['src/**/*.{test,spec}.{js,ts}'],
environment: 'node',
globals: true,
setupFiles: []
}
});