Documentation Index
Fetch the complete documentation index at: https://mintlify.com/KingPsychopath/oooc-fete-finder/llms.txt
Use this file to discover all available pages before exploring further.
Overview
OOOC Fête Finder is designed for deployment on Vercel with PostgreSQL as the primary data store. This guide covers environment setup, deployment configuration, and post-deploy verification.Prerequisites
Provision PostgreSQL database
Use Vercel Postgres or any compatible PostgreSQL provider (Neon, Supabase, etc.).
Required environment variables
Configure these in both Preview and Production environments:See the Environment Variables reference for a complete list of optional configuration.
Deployment configuration
The application includes avercel.json configuration file that defines:
Cron jobs
vercel.json
All cron endpoints require
Authorization: Bearer <CRON_SECRET> header. Set CRON_SECRET in your environment variables.Function timeouts
vercel.json
Cache headers
vercel.json
Deploy steps
Bootstrap the database
After first deployment, initialize the database schema and seed data:This script:
- Creates required tables (
app_kv_store,app_event_store_*) - Migrates legacy KV data if present
- Seeds from
data/events.csvif tables are empty - Initializes user collection
Access admin panel
Navigate to
/admin and authenticate with your ADMIN_KEY.The admin dashboard shows:- Runtime status and data source
- Database connectivity
- Current event count
- Backup status
Load initial data
From
/admin/operations, you can:- Upload CSV to PostgreSQL
- Import from Google Sheets backup
- Review event data in sheet editor
Post-deploy verification
Verify cron jobs
Check Vercel dashboard > Cron Jobs to confirm:
- All three cron jobs are registered
- Schedules match
vercel.json - First runs are scheduled
Test event data
Visit the homepage and verify:
- Events load correctly
- Map coordinates display
- Filters function properly
Common deployment issues
Runtime errors in preview/production
- Database connection: Confirm
DATABASE_URLis set in both Preview and Production - Data mode: Verify
DATA_MODE=remoteis explicitly set - Secrets: Confirm
AUTH_SECRETis at least 32 characters - Cron secrets: If using cron jobs, verify
CRON_SECRETis set - Node runtime: Verify route handlers use Node runtime where needed
Database not initialized
If the database is empty after deployment:Stale cache after publish
If homepage doesn’t reflect saved changes:- From
/admin/operations, click “Save and Revalidate Homepage” - Verify runtime source in “Live Runtime Snapshot”
- If needed, call the deploy revalidation endpoint manually
Deploy hook integration
Automate cache invalidation on every deploy:Create deploy hook in Vercel
Project Settings > Git > Deploy Hooks > Create Hook
- Name: “Post-Deploy Revalidate”
- Branch: “main” (or your production branch)
Monitoring
Monitor your deployment using:- Vercel Logs: Real-time function logs and errors
- Admin health endpoint:
/api/admin/healthfor application status - Database CLI:
pnpm db:cli statusfor database diagnostics - Health check script:
pnpm health:checkfor comprehensive diagnostics
Next steps
- Configure PostgreSQL for optimal performance
- Set up logging for observability
- Configure backups for disaster recovery
- Harden serverless runtime for production