Skip to content

Commit 7c27c75

Browse files
committed
fix: add prisma generate to build script for Vercel
Vercel caches node_modules which leads to outdated Prisma Client. Adding prisma generate to the build script ensures the client is regenerated on each deployment.
1 parent 1ea48c1 commit 7c27c75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"seed": "node --require esbuild-register prisma/seed.ts"
88
},
99
"scripts": {
10-
"build": "cross-env NODE_ENV=production npm run build:css && remix build",
10+
"build": "prisma generate --schema=./prisma/schema.sqlite.prisma && cross-env NODE_ENV=production npm run build:css && remix build",
1111
"build:css": "tailwindcss --minify -o ./app/tailwind.css",
1212
"build:remix": "cross-env NODE_ENV=production remix build --sourcemap",
1313
"dev": "cross-env DATABASE_URL=file:./dev.db NODE_ENV=development prisma generate --schema=./prisma/schema.sqlite.prisma && concurrently -k \"npm run dev:css\" \"remix dev\"",

0 commit comments

Comments
 (0)