This repository was archived by the owner on Mar 2, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
This repository was archived by the owner on Mar 2, 2026. It is now read-only.
Critical: .env.example References MongoDB Instead of PostgreSQL #5
Copy link
Copy link
Open
Description
Priority
🔴 Critical - Developer Experience & Onboarding
Location
.env.example:1
Problem Description
The .env.example file contains a MongoDB connection string:
DATABASE_URL=mongodb://127.0.0.1/your-database-nameHowever, the project is configured to use PostgreSQL via @payloadcms/db-postgres (see src/payload.config.ts:86-91).
Impact
- New developers cannot start the application without debugging
- Confusion about which database to use
- Failed migrations and connection errors
- Wasted time troubleshooting database setup
- Inconsistent with actual project configuration
Expected .env.example
# Database - PostgreSQL (Required)
DATABASE_URL=postgresql://user:password@localhost:5432/python_secrets
# Payload CMS Secret (Required)
PAYLOAD_SECRET=your-random-secret-key-here
# E2B API Key (Required - for Python code execution)
E2B_API_KEY=your-e2b-api-key
# Application URL (Required)
NEXT_PUBLIC_APP_URL=http://localhost:3000
# Optional: Additional environment variables
# NODE_ENV=developmentRelated Files
src/payload.config.ts- UsespostgresAdapterdocker-compose.yml- Also incorrectly references MongoDBsrc/lib/auth.ts- Uses pg (PostgreSQL) Pool
Related Issues
- Critical: Build Errors Ignored in Production Configuration #4 - docker-compose.yml also uses MongoDB instead of PostgreSQL
Steps to Fix
- Update
.env.examplewith correct PostgreSQL connection string - Add all missing required environment variables
- Document each variable with its purpose
- Update
docs/SETUP.mdif it references the old example - Test with a fresh developer onboarding
Additional Context
This issue causes immediate friction for new contributors and must be fixed before anyone else tries to set up the project.
Reactions are currently unavailable