Building in production: The .env is not copied into the build folder #1874
-
It seems that this issue has also been reported on StackOverflow also. Building with Thus, the following error appears with
I am using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This is intentional since you are not supposed to use your development
In other words, the |
Beta Was this translation helpful? Give feedback.
This is intentional since you are not supposed to use your development
.env
file in production.DB_HOST
,DB_NAME
,DB_PASSWORD
and so onAPP_KEY
should be strictly different in prod and development.In other words, the
.env
file is not meant to be portable and hence there is no point in copying it to thebuild
folder