← Back to blog
deploymentvercel

Deploying to Vercel

GorilliSaaS Team · April 1, 2024

Prerequisites


Before deploying, make sure you have:


  • A Vercel account
  • All required environment variables ready (see DEPLOYMENT.md)
  • A production MongoDB instance

  • Deployment Steps


    1. Connect Your Repository


    Import your GitHub repository in the Vercel dashboard. Vercel will automatically detect the Next.js framework.


    2. Configure Environment Variables


    Add all required environment variables in the Vercel project settings. Refer to DEPLOYMENT.md for the complete list.


    3. Deploy


    Vercel will build and deploy your application automatically. The `vercel.json` at the repository root configures the build:


    ```json

    {

    "buildCommand": "yarn build",

    "installCommand": "yarn install --frozen-lockfile",

    "framework": "nextjs"

    }

    ```


    Post-Deployment Checklist


    After deploying, follow the go-live checklist in DEPLOYMENT.md to verify all services are configured correctly.