From b6b7d85f6d42dd04ff5062380887edd16f3a6d0e Mon Sep 17 00:00:00 2001 From: Hiroaki Ogasawara <13391129+xhiroga@users.noreply.github.com> Date: Tue, 11 Jan 2022 17:56:07 -0800 Subject: [PATCH] Docs: correct ignorance pattern for .env.local (#32647) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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: Steven * Update docs/basic-features/environment-variables.md Co-authored-by: Balázs Orbán Co-authored-by: Steven Co-authored-by: Balázs Orbán --- docs/basic-features/environment-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basic-features/environment-variables.md b/docs/basic-features/environment-variables.md index 43ecd315ad9714e..857f4f488dc0b53 100644 --- a/docs/basic-features/environment-variables.md +++ b/docs/basic-features/environment-variables.md @@ -112,7 +112,7 @@ Next.js allows you to set defaults in `.env` (all environments), `.env.developme `.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