Skip to content

Commit dff24ad

Browse files
author
Deepak Pandey
committed
fix: Use vercel build instead of npm run build for proper prebuilt deployment
🔧 Vercel Build Fix: - Replace 'npm run build' with 'vercel build' - Creates proper .vercel/output/ directory structure - Fixes --prebuilt deployment errors - Enables faster, optimized Vercel deployments ✅ Benefits: - Faster deployments (no double building) - Proper Vercel optimization - Correct build artifacts (.vercel/output/ vs .next/) - Resolves missing static assets and MIME type issues
1 parent 118ff76 commit dff24ad

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,7 @@ jobs:
299299
run: npm ci
300300

301301
- name: Build for Vercel
302-
run: |
303-
npm run build
302+
run: vercel build --token ${{ secrets.VERCEL_TOKEN }}
304303
env:
305304
NODE_ENV: production
306305
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
@@ -378,8 +377,7 @@ jobs:
378377
run: npm ci
379378

380379
- name: Build for Vercel
381-
run: |
382-
npm run build
380+
run: vercel build --token ${{ secrets.VERCEL_TOKEN }}
383381
env:
384382
NODE_ENV: production
385383
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}

0 commit comments

Comments
 (0)