mirror of
https://github.com/System-End/campfire.git
synced 2026-04-19 23:22:56 +00:00
fix: prisma at runtime?
This commit is contained in:
parent
1a5ce98ce7
commit
83ac988e6d
2 changed files with 3 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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']
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue