From 352b14cec78f2ce34925e897fa409f2a387b6fe8 Mon Sep 17 00:00:00 2001 From: Hardik Date: Thu, 28 May 2026 22:55:44 +0530 Subject: [PATCH] fix(build): run prisma generate before next build Ensures the Prisma client types are always regenerated from the current schema before compilation. Without this, schema changes (e.g. making passwordHash nullable) cause TypeScript errors on the build server if prisma generate hasn't been run manually after pulling. Co-Authored-By: Claude Sonnet 4.6 --- App/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/package.json b/App/package.json index 3fe9415..aae3b77 100644 --- a/App/package.json +++ b/App/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "next dev --turbopack", - "build": "next build", + "build": "prisma generate && next build", "start": "next start", "lint": "next lint", "type-check": "tsc --noEmit",