-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore only local env files in Vite templates
In Vite `.env` files work a bit differently, where `.env` itself is intended to be public, and `.env.local` is the one that should be ignored by Git. But a Vite project can have more `.env` files, like `.env.development`, which is used only in development mode, and overrides values in `.env`, then you can have `.env.development.local` as well and so on. https://vitejs.dev/guide/env-and-mode.html#env-files
- Loading branch information
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ node_modules | |
|
||
/.cache | ||
/build | ||
.env | ||
.env*.local | ||
|
||
.wrangler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ node_modules | |
|
||
/.cache | ||
/build | ||
.env | ||
.env*.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ node_modules | |
|
||
/.cache | ||
/build | ||
.env | ||
.env*.local |