Deploy to Vercel
Step-by-step guide to deploying your Eden Stack app to Vercel
Deploy to Vercel
This guide walks you through deploying your Eden Stack web application to Vercel.
Prerequisites
- A Vercel account
- Your project pushed to GitHub
- Environment variables ready
Step 1: Import Your Project
- Go to vercel.com/new
- Select "Import Git Repository"
- Choose your Eden Stack repository
- Select the
apps/webdirectory as the root
Step 2: Configure Build Settings
Vercel should auto-detect the settings, but verify:
| Setting | Value |
|---|---|
| Framework Preset | Vite |
| Build Command | bun run build |
| Output Directory | dist |
| Install Command | bun install |
Step 3: Add Environment Variables
Add your production environment variables:
VITE_API_URL=https://your-api.fly.dev
BETTER_AUTH_URL=https://your-app.vercel.appStep 4: Deploy
Click "Deploy" and wait for the build to complete. Your app will be live at your-app.vercel.app!
Custom Domain
- Go to your project settings
- Click "Domains"
- Add your custom domain
- Update DNS records as instructed
Automatic Deployments
Vercel automatically deploys:
- Production: Every push to
main - Preview: Every pull request
Troubleshooting
Build Fails
Check that all environment variables are set. Vite requires VITE_ prefix for client-side variables.
API Calls Fail
Ensure your API is deployed and VITE_API_URL points to it. Check CORS settings in your API.
Full documentation for Eden Stack users
This documentation is exclusively available to Eden Stack customers. Already purchased? Log in to access the full content.