- Deployment URL: https://choice-marketing-partners-os5c419g1-drews-projects-c37795c7.vercel.app
- Project Dashboard: https://vercel.com/drews-projects-c37795c7/choice-marketing-partners
DATABASE_URL=mysql://[username]:[password]@[host]:[port]/[database]
Note: This should point to your production MySQL database. Consider using PlanetScale, Railway, or similar for managed MySQL.
NEXTAUTH_URL=https://choice-marketing-partners-os5c419g1-drews-projects-c37795c7.vercel.app
NEXTAUTH_SECRET=[generate-32-character-random-string]
Generate secret: openssl rand -base64 32
BLOB_READ_WRITE_TOKEN=[your-vercel-blob-token]
Setup: Go to Vercel Dashboard → Storage → Create Blob Store → Copy token
RESEND_API_KEY=[your-resend-api-key]
Setup: Create account at resend.com → Get API key
FEATURE_PDF_GENERATION=true
FEATURE_EMAIL_NOTIFICATIONS=true
NODE_ENV=production
-
Access Project Settings:
- Go to: https://vercel.com/drews-projects-c37795c7/choice-marketing-partners
- Click "Settings" tab
-
Environment Variables Section:
- Click "Environment Variables" in left sidebar
- Add each variable above with appropriate values
-
Environment Scope:
- Set each variable for "Production" environment
- Consider adding to "Preview" for staging testing
-
Redeploy:
- After adding all variables, trigger a new deployment
- Run:
vercel --prodor push to main branch
- Use read/write user with minimal required permissions
- Enable SSL connection to database
- Whitelist Vercel IP ranges if using IP restrictions
- Generate strong NEXTAUTH_SECRET (32+ characters)
- Enable HTTPS-only cookies in production
- Configure proper session timeout
- All API routes include authentication checks
- Rate limiting configured via Vercel
- Security headers enabled via next.config.ts
- Database Setup: Configure production MySQL database
- Domain Configuration: Set up custom domain (optional)
- Monitoring Setup: Configure Sentry for error tracking
- Performance Monitoring: Enable Vercel Analytics
- Health Check: Visit /api/health endpoint
- Authentication: Test login flow
- Database Connection: Verify data loading
- File Storage: Test document upload/download
- Build Errors: Check deployment logs in Vercel dashboard
- Runtime Errors: Monitor function logs and Sentry alerts
- Database Issues: Verify connection string and permissions
- Authentication Issues: Check NEXTAUTH_URL and secret configuration