diff --git a/docs/local-api/overview.mdx b/docs/local-api/overview.mdx index 258f627fa..a3040e19e 100644 --- a/docs/local-api/overview.mdx +++ b/docs/local-api/overview.mdx @@ -412,7 +412,7 @@ dotenv.config({ path: path.resolve(__dirname, '../.env'), }) -const { PAYLOAD_SECRET, MONGODB_URI } = process.env +const { PAYLOAD_SECRET } = process.env const doAction = async (): Promise => { await payload.init({ diff --git a/docs/production/deployment.mdx b/docs/production/deployment.mdx index 27e2e2c92..7d7f87d52 100644 --- a/docs/production/deployment.mdx +++ b/docs/production/deployment.mdx @@ -160,7 +160,7 @@ DigitalOcean provides extremely helpful documentation that can walk you through ## Docker -This is an example of a multi-stage docker build of Payload for production. Ensure you are setting your environment variables on deployment, like `PAYLOAD_SECRET`, `PAYLOAD_CONFIG_PATH`, and `MONGODB_URI` if needed. +This is an example of a multi-stage docker build of Payload for production. Ensure you are setting your environment variables on deployment, like `PAYLOAD_SECRET`, `PAYLOAD_CONFIG_PATH`, and `DATABASE_URI` if needed. ```dockerfile FROM node:18-alpine as base @@ -210,7 +210,7 @@ services: depends_on: - mongo environment: - MONGODB_URI: mongodb://mongo:27017/payload + DATABASE_URI: mongodb://mongo:27017/payload PORT: 3000 NODE_ENV: development PAYLOAD_SECRET: TESTING