Skip to content

Commit e6b10ec

Browse files
author
Deepak Pandey
committed
Fix Vercel CLI rollback command syntax
✅ FIXED VERCEL CLI COMMAND: - Updated rollback command from '--prod' to correct syntax - Removed deprecated '--prod' flag that was causing 'unknown or unexpected option' error - Vercel CLI 47.0.5 no longer supports --prod flag for rollback command - GitHub Actions rollback job will now work correctly ✅ ROLLBACK COMMAND FIXED: - OLD: npx vercel rollback --prod --token *** --yes (❌ Fails) - NEW: npx vercel rollback --token *** --yes (✅ Works) - This ensures production rollback works when deployment fails
1 parent eadb3ad commit e6b10ec

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
@@ -303,7 +303,7 @@ jobs:
303303

304304
- name: Rollback deployment
305305
run: |
306-
npx vercel rollback --prod --token ${{ secrets.VERCEL_TOKEN }} --yes
306+
npx vercel rollback --token ${{ secrets.VERCEL_TOKEN }} --yes
307307
env:
308308
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
309309
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

0 commit comments

Comments
 (0)