Skip to content

Commit 1dc95f9

Browse files
committed
Recommend to use real env vars in production
1 parent c82f04a commit 1dc95f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/dotenv.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ You should never store a ``.env`` file in your code repository as it might
6969
contain sensitive information; create a ``.env.dist`` file with sensible
7070
defaults instead.
7171

72+
.. note::
73+
74+
Symfony Dotenv can be used in any environment of your application:
75+
development, testing, staging and even production. However, in production
76+
it's recommended to configure real environment variables to avoid the
77+
performance overhead of parsing the ``.env`` file for every request.
78+
7279
As a ``.env`` file is a regular shell script, you can ``source`` it in your own
7380
shell scripts:
7481

0 commit comments

Comments
 (0)