DEV Community

Discussion on: Stop Using .env Files Now!

Collapse
 
jdhines profile image
orangehat

I think one source of friction is that .env files can be used very easily, even by the frontend code, with no network requests. Isn't there a little (or a lot) more code needed to use a secrets service?

Collapse
 
gregorygaines profile image
Gregory Gaines

Yes, there would be extra code added for a config pulling component. But you have the benefits of what I wrote in the article while also being able to dynamically update configs for your front-end without having to redeploy the site.