Your Vercel deployment is getting 500 errors because the DATABASE_URL environment variable is set to a placeholder. You need a real PostgreSQL database for production.
- Go to neon.tech
- Sign up with your GitHub account (same as Vercel)
- Create a new project called "dreamforge"
- Select PostgreSQL 15+
- Choose the free tier (perfect for development)
- After creating the project, go to Dashboard
- Click "Connection Details"
- Copy the "Connection string" (it looks like):
postgresql://username:password@ep-xxx.us-east-1.aws.neon.tech/dreamforge?sslmode=require
Run this command with your actual Neon database URL:
# Replace with your actual Neon database URL
npx vercel env rm DATABASE_URL production
echo "your-neon-database-url-here" | npx vercel env add DATABASE_URL production# Generate Prisma client for production
npx prisma db push --accept-data-lossnpx vercel --prodIf you prefer Vercel's own database:
- Go to vercel.com/dashboard
- Select your dreamforge project
- Go to "Storage" tab
- Click "Create Database" → "Postgres"
- The DATABASE_URL will be automatically added to your project
- Go to supabase.com
- Create new project
- Get database URL from Settings → Database
- Update Vercel env var as shown above
If you still get 500 errors after setting up the database:
- Check logs:
npx vercel logs your-deployment-url - Verify all environment variables are set:
npx vercel env ls - Make sure Google OAuth redirect URLs include your Vercel domain
✅ Environment variables set:
- NEXTAUTH_SECRET
- NEXTAUTH_URL
- GOOGLE_CLIENT_ID
- GOOGLE_CLIENT_SECRET
- GEMINI_API_KEY
❌ Needs real database:
- DATABASE_URL (currently placeholder)