Skip to content

feat: Vercel deploy config — auto schema push on build - #12

Merged
davidminin merged 1 commit into
mainfrom
feat/vercel-deploy-config
Apr 19, 2026
Merged

feat: Vercel deploy config — auto schema push on build#12
davidminin merged 1 commit into
mainfrom
feat/vercel-deploy-config

Conversation

@davidminin

Copy link
Copy Markdown
Owner

Adds a vercel-build script to apps/portal/package.json:

"vercel-build": "prisma generate && prisma db push && next build"

Why: Vercel auto-detects and runs the vercel-build script instead of build. This ensures:

  • Prisma client is generated fresh each deploy
  • Database schema is auto-synced (no manual prisma db push needed)
  • Standard recommended pattern for Vercel + Prisma + Neon

No impact on local development — npm run build still just runs next build.

@davidminin
davidminin merged commit 0a13928 into main Apr 19, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant