Environment Variables
.env constants and variables
Configure in /lumex/.env file:
DATABASE_URI=mongodb://admin:S3cret@localhost:27017/lumex?authSource=admin
PAYLOAD_SECRET=8d6fc1282a3129b82f3ebd8c
NEXT_PUBLIC_SERVER_URL=http://localhost:3000
CRON_SECRET=YOUR_CRON_SECRET_HERE
PREVIEW_SECRET=YOUR_SECRET_HERE
NEXT_PUBLIC_MAILCHIMP_ACTION_URL=YOUR_MAILCHIMP_ACTION_URL
NEXT_PUBLIC_MAILCHIMP_PUBLIC_KEY=YOUR_MAILCHIMP_PUBLIC_KEY
DATABASE_URI
Database connection string where mongodb://<mongodb-user>:<user-password>@<host>:<port>/<your-database-name> (mongodb://admin:S3cret@localhost:27017/lumex?authSource=admin)
PAYLOAD_SECRET
Payload CMS Secret Key used to encrypt JWT tokens.
NEXT_PUBLIC_SERVER_URL
Used to configure CORS, format links and more. No trailing slash
CRON_SECRET
Secret used to authenticate cron jobs
PREVIEW_SECRET
Used to validate preview requests
NEXT_PUBLIC_MAILCHIMP_ACTION_URL
Action URL Link (you can get it using generate form function on MailChimp platform). Used in Subscribe Newsletter block (Layout Builder).
NEXT_PUBLIC_MAILCHIMP_PUBLIC_KEY
Public Key (you can get it using generate form function on MailChimp platform). Used in Subscribe Newsletter block (Layout Builder).
Last updated