Unverified Commit b6b7d85f authored by Hiroaki Ogasawara's avatar Hiroaki Ogasawara Committed by GitHub

Docs: correct ignorance pattern for .env.local (#32647)

* Docs: correct ignorance pattern for env.local

In order to gitignore `.env.local`, I need to add `.env*.local` instead of `.env.*.local` to `.gitignore`.

* Update docs/basic-features/environment-variables.md
Co-authored-by: 's avatarSteven <steven@ceriously.com>

* Update docs/basic-features/environment-variables.md
Co-authored-by: 's avatarBalázs Orbán <info@balazsorban.com>
Co-authored-by: 's avatarSteven <steven@ceriously.com>
Co-authored-by: 's avatarBalázs Orbán <info@balazsorban.com>
parent 36eba952
...@@ -112,7 +112,7 @@ Next.js allows you to set defaults in `.env` (all environments), `.env.developme ...@@ -112,7 +112,7 @@ Next.js allows you to set defaults in `.env` (all environments), `.env.developme
`.env.local` always overrides the defaults set. `.env.local` always overrides the defaults set.
> **Note**: `.env`, `.env.development`, and `.env.production` files should be included in your repository as they define defaults. **`.env.*.local` should be added to `.gitignore`**, as those files are intended to be ignored. `.env.local` is where secrets can be stored. > **Note**: `.env`, `.env.development`, and `.env.production` files should be included in your repository as they define defaults. **`.env*.local` should be added to `.gitignore`**, as those files are intended to be ignored. `.env.local` is where secrets can be stored.
## Environment Variables on Vercel ## Environment Variables on Vercel
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment