Follow these steps to connect your Sports Disruptors platform to a PostgreSQL database and get everything running on Vercel.
DATABASE_URLRequiredPostgreSQL connection string (pooled/transaction mode)
postgresql://user:pass@ep-xxx.us-east-2.aws.neon.tech/sports_disruptors?sslmode=require
DIRECT_URLRequiredPostgreSQL direct connection string (for Prisma Migrate)
postgresql://user:pass@ep-xxx.us-east-2.aws.neon.tech/sports_disruptors?sslmode=require
OPENAI_API_KEYRequiredOpenAI API key for AI-powered content generation
sk-...
NEXTAUTH_SECRETRequiredSecret for NextAuth.js session encryption
Generate with: openssl rand -base64 32
NEXTAUTH_URLRequiredYour production URL
https://your-domain.vercel.app
CRON_SECRETRequiredSecret to protect cron API endpoints
Generate a random string
OPENAI_MODELOptionalPrimary OpenAI model for article rewrites
gpt-4o-mini
OPENAI_BULK_MODELOptionalSecondary model for bulk content generation
gpt-4o-mini
RESEND_API_KEYOptionalResend API key for email newsletters
re_...
Once your database is connected and the app is redeployed, seed the database with initial data by running: npx prisma db push && npx tsx prisma/seed.ts