fix: prisma at runtime?

This commit is contained in:
techpixel 2026-01-21 18:42:12 -05:00
parent 1a5ce98ce7
commit 83ac988e6d
No known key found for this signature in database
GPG key ID: 34D6A091A305A398
2 changed files with 3 additions and 8 deletions

View file

@ -5,12 +5,13 @@ WORKDIR /app
COPY package*.json ./
COPY prisma ./prisma
RUN npm ci
RUN npx prisma generate
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY --from=deps /app/src/generated/prisma ./src/generated/prisma
COPY . .
RUN npx prisma generate
RUN npm run build
FROM base AS runner

View file

@ -15,14 +15,8 @@ export default defineConfig({
vite: {
plugins: [tailwindcss()],
build: {
rollupOptions: {
external: [/^@prisma\/client\/runtime\/.*/]
}
},
ssr: {
noExternal: ['@prisma/client'],
external: ['@prisma/client/runtime/query_compiler_fast_bg.postgresql.mjs']
external: ['@prisma/client']
}
},