Skip to content

Commit 8dd569a

Browse files
author
EDICTO Dev
committed
fix: add prisma generate to build script for Vercel deployment
1 parent 7798f3c commit 8dd569a

2 files changed

Lines changed: 21 additions & 10 deletions

File tree

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,30 @@
44
"private": true,
55
"scripts": {
66
"dev": "next dev --turbopack",
7-
"build": "next build",
7+
"build": "prisma generate && next build",
88
"start": "next start",
99
"lint": "next lint",
1010
"db:push": "prisma db push",
11-
"db:seed": "tsx prisma/seed.ts",
12-
"db:fts": "tsx prisma/fts.ts",
11+
"db:seed": "npm exec --yes tsx prisma/seed.ts",
12+
"db:fts": "npm exec --yes tsx prisma/fts.ts",
1313
"test": "vitest",
1414
"e2e": "playwright test"
1515
},
1616
"dependencies": {
17-
"@auth/prisma-adapter": "^1.0.19",
17+
"@auth/prisma-adapter": "^1.0.0",
1818
"@prisma/client": "^6.13.0",
1919
"next": "15.4.6",
20-
"next-auth": "^4.24.7",
21-
"nodemailer": "^6.10.1",
22-
"react": "19.1.0",
23-
"react-dom": "19.1.0",
24-
"resend": "^6.0.1"
20+
"next-auth": "^5.0.0-beta.16",
21+
"nodemailer": "^6.9.0",
22+
"react": "^19",
23+
"react-dom": "^19",
24+
"resend": "^3.1.0"
2525
},
2626
"devDependencies": {
2727
"@eslint/eslintrc": "^3",
2828
"@tailwindcss/postcss": "^4",
29-
"@types/node": "^20",
29+
"@types/node": "^22",
30+
"@types/nodemailer": "^6.4.0",
3031
"@types/react": "^19",
3132
"@types/react-dom": "^19",
3233
"eslint": "^9",

vercel.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"buildCommand": "npm run build",
3+
"installCommand": "npm install",
4+
"framework": "nextjs",
5+
"functions": {
6+
"app/api/auth/[...nextauth]/route.ts": {
7+
"maxDuration": 30
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)