Overview
ESBO Web is optimized for deployment on Vercel, providing seamless integration with GitHub for automatic deployments. The live application is currently hosted at esbo-web.vercel.app.Prerequisites
Before deploying, ensure you have:- A GitHub account with your repository
- A Vercel account (sign up at vercel.com)
- Repository access and permissions
Deployment Steps
Connect GitHub Repository
- Log in to your Vercel dashboard
- Click “Add New…” and select “Project”
- Import your ESBO Web repository from GitHub
- Authorize Vercel to access your repository if prompted
Configure Build Settings
Vercel should auto-detect Vite, but verify these settings:
- Framework Preset:
Vite - Build Command:
npm run build - Output Directory:
dist - Install Command:
npm install
Vercel automatically detects Vite projects and applies the correct configuration. You typically don’t need to manually adjust these settings.
Configure Environment Variables (Optional)
If your project uses environment variables, add them in the “Environment Variables” section:
- Click “Add” for each variable
- Use the
VITE_prefix for client-side variables - Set appropriate values for Production, Preview, and Development environments
Currently, ESBO Web doesn’t require environment variables for basic deployment.
Continuous Deployment
Once connected, Vercel automatically deploys:- Production: Every push to your
mainormasterbranch - Preview: Every push to other branches and pull requests
Preview deployments are perfect for testing changes before merging to production. Each preview gets a unique URL.
Custom Domain Setup
Add Domain
- Go to your project settings in Vercel
- Navigate to the “Domains” tab
- Click “Add” and enter your custom domain
Build Configuration
The project uses Vite 7.3.1 with the following configuration:vite.config.js
Deployment Best Practices
Performance Optimization
- Vercel’s CDN automatically caches static assets
- Assets are served from the edge location closest to users
- Automatic compression (Brotli/Gzip) is enabled by default
Branch Protection
Preview Deployments
Use preview deployments to:- Test changes before production
- Share work-in-progress with stakeholders
- Run visual regression tests
- Validate build output
Monitoring Deployments
Vercel provides:- Real-time build logs
- Deployment status in GitHub pull requests
- Analytics for Core Web Vitals
- Error tracking integration
Troubleshooting
Build Failures
If your build fails:- Check the build logs in Vercel dashboard
- Verify dependencies in
package.json - Ensure Node.js version compatibility (Vercel uses Node 18+ by default)
- Test the build locally:
npm run build
Deployment Issues
Most issues are related to dependency versions or environment configuration. Always test builds locally before pushing.
- Clear Vercel build cache: Settings → General → Clear Cache
- Verify
distdirectory is not in.gitignore - Check for TypeScript or ESLint errors
- Ensure all dependencies are in
dependenciesordevDependencies
Rollback Strategy
Vercel maintains deployment history:- Go to your project dashboard
- Navigate to “Deployments” tab
- Find a previous successful deployment
- Click ”…” menu and select “Promote to Production”
Rollbacks are instant and don’t require rebuilding.
Next Steps
- Set up custom domains
- Configure deployment protection
- Enable Web Analytics
- Integrate with monitoring services
- Set up deployment notifications