# PayloadCMS Configuration PAYLOAD_SECRET=your-secret-key-here # Database Configuration # Leave DATABASE_URI empty to use in-memory MongoDB (recommended for development) # DATABASE_URI=mongodb://localhost:27017/payload-mailing-dev # Force in-memory database (optional, enabled by default if DATABASE_URI is not set) USE_MEMORY_DB=true # Email Configuration (Development) EMAIL_HOST=localhost EMAIL_PORT=1025 EMAIL_USER=test EMAIL_PASS=test EMAIL_FROM=noreply@test.com # Development Settings NODE_ENV=development PORT=3000 # Database Options: # 1. In-memory MongoDB (default) - No installation required, data resets on restart # 2. Local MongoDB - Install MongoDB and set DATABASE_URI # 3. Remote MongoDB - Set DATABASE_URI to remote connection string # Optional: Use MailHog for email testing # MailHog runs on localhost:1025 for SMTP and localhost:8025 for web UI # Download from: https://github.com/mailhog/MailHog