Environment Variables

.env constants and variables

Configure in /pixy/.env file:

DATABASE_URI=postgres://postgres:S3cret@127.0.0.1:5432/pixy
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 postgres://<postgres-user>:<user-password>@<host>:<port>/<your-database-name> ( postgres://postgres:S3cret@127.0.0.1:5432/pixy)

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