Vercel Deployment
Deploy your SaaS to Vercel. Get automatic preview deployments, edge functions, and seamless Git integration.
The boilerplate supports zero-configuration deployment to Vercel's global edge network. Vercel automatically detects your Nuxt configuration and sets up the optimal deployment settings.
What's Included
The Vercel deployment setup provides:
- Preview deployments for all branches
- Edge function deployment
- Global CDN
- Automatic HTTPS and SSL
- Continuous deployment from Git
- Environment variable management
Deployment Steps
Git Setup
- Push your code to a Git provider:
git add . git commit -m "Ready for deployment" git push origin main
- Import your project at vercel.com/new
- Select your Git repository
- Vercel will automatically detect Nuxt and configure the build settings
Environment Configuration
Set your environment variables in the Vercel dashboard:
DATABASE_URL=postgresql://...
# Add other environment variables from .env
Edge Functions
To deploy your application to Vercel's Edge Network for better performance:
- Update your build command in
vercel.json
or the Vercel dashboard:nuxt build --preset=vercel_edge
- Or set the environment variable:
SERVER_PRESET=vercel_edge
Key Features
- Zero Configuration: Automatic platform detection
- Preview Deployments: Every deployment gets a unique URL
- Edge Network: Global low-latency deployment
- Instant Rollbacks: One-click production rollbacks
Best Practices
- Use preview deployments for testing changes
- Configure branch protection rules
- Use Vercel's environment variable UI for secrets
Need Help?
- Check out the Vercel Documentation for detailed guides
- Join our Discord Community for deployment support