From dff24adfb0a7d514d4669a8f585cf0c42dfe9fc7 Mon Sep 17 00:00:00 2001 From: Deepak Pandey Date: Sat, 6 Sep 2025 14:31:15 +0530 Subject: [PATCH] fix: Use vercel build instead of npm run build for proper prebuilt deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🔧 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 --- .github/workflows/ci-cd.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 425a2b85..214609c2 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -299,8 +299,7 @@ jobs: run: npm ci - name: Build for Vercel - run: | - npm run build + run: vercel build --token ${{ secrets.VERCEL_TOKEN }} env: NODE_ENV: production NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }} @@ -378,8 +377,7 @@ jobs: run: npm ci - name: Build for Vercel - run: | - npm run build + run: vercel build --token ${{ secrets.VERCEL_TOKEN }} env: NODE_ENV: production NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}