1f7e040049
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.
22 lines
454 B
TypeScript
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: []
|
|
}
|
|
});
|