This application is deployed on Vercel:
Live URL: https://mahmoudabdulbassir-next-app.vercel.app/
Deployment Steps:
- Push code to the GitHub repository.
- GitHub Actions triggers CI/CD workflow on
mainbranch. - Workflow installs dependencies, runs tests, builds the app, and deploys to Vercel automatically.
- The Vercel project uses the following secrets in GitHub Actions:
VERCEL_TOKENVERCEL_ORG_IDVERCEL_PROJECT_ID
- Workflow file:
.github/workflows/ci-cd.yml - Trigger: push to
mainbranch or pull requests - Steps:
- Checkout code
- Install dependencies
- Run tests (
npm test --if-present) - Build Next.js app
- Deploy to Vercel (production environment)
-
SSL certificate errors (
SELF_SIGNED_CERT_IN_CHAIN)- Solved by configuring npm to use system CA certificates or using
npxinstead of global install.
- Solved by configuring npm to use system CA certificates or using
-
GitHub authentication for push
- Solved by using a Personal Access Token (PAT) for HTTPS authentication.
-
Vercel Project ID / Org ID not visible
- Solved by running
npx vercel projects lsafter logging in via Vercel CLI.
- Solved by running
-
Global npm permission errors
- Solved using
sudoornpxto bypass global install.
- Solved using