You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<details><summary>Should I commit my `.env` file?</summary><br/>
540
+
Unless you encrypt it with [dotenvx](https://github.com/dotenvx/dotenvx). Then we recommend you do.
542
541
543
-
No. We **strongly** recommend against committing your `.env` file to version
542
+
</details>
543
+
<details><summary>What about variable expansion?</summary><br/>
544
544
545
-
control. It should only include environment-specific values such as database
546
-
passwords or API keys. Your production database should have a different
547
-
password than your development database.
545
+
Use [dotenvx](https://github.com/dotenvx/dotenvx).
548
546
549
547
</details>
550
548
<details><summary>How do I use dotenv with `import`?</summary><br/>
@@ -611,6 +609,9 @@ We recommend creating one `.env` file per environment. Use `.env` for local/deve
611
609
> In a twelve-factor app, env vars are granular controls, each fully orthogonal to other env vars. They are never grouped together as “environments”, but instead are independently managed for each deploy. This is a model that scales up smoothly as the app naturally expands into more deploys over its lifetime.
<details><summary>What rules does the parsing engine follow?</summary><br/>
627
629
@@ -656,7 +658,7 @@ Use [dotenvx](https://github.com/dotenvx/dotenvx) to unlock syncing encrypted .e
656
658
Remove it, [remove git history](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository) and then install the [git pre-commit hook](https://github.com/dotenvx/dotenvx#pre-commit) to prevent this from ever happening again.
0 commit comments