diff --git a/docs/02-app/01-building-your-application/06-configuring/03-environment-variables.mdx b/docs/02-app/01-building-your-application/06-configuring/03-environment-variables.mdx index 572668e56e22c..66704c4ead26e 100644 --- a/docs/02-app/01-building-your-application/06-configuring/03-environment-variables.mdx +++ b/docs/02-app/01-building-your-application/06-configuring/03-environment-variables.mdx @@ -55,11 +55,11 @@ This loads `process.env.DB_HOST`, `process.env.DB_USER`, and `process.env.DB_PAS Next.js will automatically expand variables that use `$` to reference other variables e.g. `$VARIABLE` inside of your `.env*` files. This allows you to reference other secrets. For example: ```txt filename=".env" -TWITTER_USER=vercel +TWITTER_USER=nextjs TWITTER_URL=https://twitter.com/$TWITTER_USER ``` -In the above example, `process.env.TWITTER_URL` would be set to `http://twitter.com/vercel`. +In the above example, `process.env.TWITTER_URL` would be set to `https://twitter.com/nextjs`. > **Good to know**: If you need to use variable with a `$` in the actual value, it needs to be escaped e.g. `\$`.