DEV Community

Discussion on: How to use .env file in JavaScript applications with webpack

Collapse
 
thorstenhirsch profile image
Thorsten Hirsch

Is there a way to only use the .env file if there are no environment variables defined? Like as a fallback solution? Because when moving the app into a docker container, there will be no .env file, but there will be environment variables.