Skip to content

Commit 60dc80e

Browse files
author
Deepak Pandey
committed
fix: Add --prod flag to vercel build for production environment match
- Add --prod flag to 'Build for Vercel' step in production job - This resolves the 'prebuilt environment mismatch' error - Ensures build target (production) matches deployment target (--prod) - Staging job correctly uses preview environment (no --prod flag)
1 parent d0b4dcd commit 60dc80e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ jobs:
389389
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
390390

391391
- name: Build for Vercel
392-
run: vercel build --token ${{ secrets.VERCEL_TOKEN }}
392+
run: vercel build --prod --token ${{ secrets.VERCEL_TOKEN }}
393393
env:
394394
NODE_ENV: production
395395
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}

0 commit comments

Comments
 (0)