mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-07-24 15:27:00 +08:00
chore: use explicit prisma-build
This is only used for building on vercel. Since there is no prerun hook to execute migration so we have to do the migration on build time.
This commit is contained in:
@ -15,7 +15,7 @@ WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
RUN yarn run docker-build
|
||||
RUN yarn run build
|
||||
|
||||
# Production image, copy all the files and run next
|
||||
FROM base AS runner
|
||||
|
@ -7,8 +7,7 @@
|
||||
"export": "next export",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
"vercel-build": "prisma generate && prisma migrate deploy && next build",
|
||||
"docker-build": "prisma generate && prisma migrate deploy && next build"
|
||||
"prisma-build": "prisma generate && prisma migrate deploy && next build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@emotion/react": "^11.10.6",
|
||||
|
Reference in New Issue
Block a user