Deploy to Vercel
Deploy your Echo application to Vercel with zero configuration
Prerequisites
Before you start
- •A Vercel account (sign up at vercel.com)
- •Your code pushed to GitHub, GitLab, or Bitbucket
- •All environment variables configured (see Environment Setup)
Connect Repository
Import your project to Vercel
- Go to vercel.com/new
- Click Import Project
- Select your Git provider (GitHub, GitLab, or Bitbucket)
- Authorize Vercel to access your repositories
- Select the repository containing your Echo project
- Click Import
Configure Project
Set up build settings
Framework Preset
Vercel should auto-detect Next.js. Verify these settings:
- •Framework Preset: Next.js
- •Root Directory:
./ - •Build Command:
npm run build - •Output Directory:
.next
Environment Variables
Configure your environment
Add all required environment variables. See Environment Setup for a complete list.
Important:
Set environment variables for Production, Preview, and Development environments separately. Use different values for each environment (e.g., different database URLs, API keys).
Database Setup
Run migrations
After your first deployment, run database migrations:
Deploy
Launch your application
Click Deploy and wait for the build to complete. Your application will be live at:
Branch Strategy
Multiple environments
Vercel automatically creates preview deployments for each branch. Configure branch deployments:
- •Production: Deploy from
masterbranch - •Preview: Automatic deployments from all other branches
- •Development: Use local development with
npm run dev
Custom Domain
Use your own domain
Add a custom domain to your Vercel deployment:
- Go to your project settings in Vercel
- Navigate to Domains
- Add your domain (e.g.,
yourdomain.com) - Follow DNS configuration instructions
- Update
NEXT_PUBLIC_APP_URLandSITE_URLin environment variables