Quick Deploy
Manual Deployment
Configure environment variables
Set the required environment variables in your Vercel project settings:Or use the Vercel dashboard: Settings → Environment Variables
Environment Variables
Required
| Variable | Description | Example |
|---|---|---|
DATABASE_URL | PostgreSQL connection string | postgres://user:pass@host:5432/pongo |
CRON_SECRET | Secret token for authenticating cron requests | Generate with openssl rand -base64 32 |
Optional
| Variable | Description | Default |
|---|---|---|
ACCESS_CODE | Password to protect dashboard | - (no auth) |
EXPIRY_DAYS | Session TTL in days | 7 |
NEXT_PUBLIC_URL | Public URL for SEO/metadata | Auto-detected |
Vercel Cron Setup
Pongo includes avercel.json configuration that automatically sets up Vercel Cron:
vercel.json
- Triggers the
/api/cronendpoint every 30 seconds - Executes all monitors on their configured schedules
- Requires the
CRON_SECRETenvironment variable for authentication
Adjusting Cron Schedule
Modify theschedule field in vercel.json to change the execution frequency:
Vercel Cron has a minimum interval of 1 minute on Hobby plans and 10 seconds on Pro plans.
Cron Endpoint
The/api/cron endpoint is protected by the CRON_SECRET environment variable:
Manual Trigger
You can manually trigger a check run:Database Setup
PostgreSQL Options
Vercel Postgres:- Neon (recommended)
- Supabase
- Railway
- PlanetScale
Troubleshooting
Monitors not running
- Verify
CRON_SECRETis set correctly in environment variables - Check Vercel Cron logs: Deployments → Logs → Cron
- Test the endpoint manually with curl
Database connection errors
- Verify
DATABASE_URLformat:postgres://user:pass@host:5432/dbname - Ensure database allows connections from Vercel IPs
- Check database is accessible and credentials are correct
Cold starts affecting monitors
Serverless functions may experience cold starts. Consider:- Using a hybrid deployment (Vercel for dashboard, VPS for scheduler)
- Upgrading to Vercel Pro for improved cold start times
- Adjusting alert conditions to account for occasional delays
Hybrid Deployment
For more reliable scheduling, deploy the dashboard to Vercel but run the scheduler on a VPS:- Deploy to Vercel as described above
- On your VPS, run:
- Remove the
cronssection fromvercel.json