r/javascript • • 14m ago

We tested how 11 loaders read the same .env file

https://sniptide.com/blog/env-file
1 Upvotes

1 comment sorted by

•

u/DoOmXx_ 14m ago

17 small .env files, run through dotenv, node, bun, next.js, vite and six other loaders. all 11 agreed on 6 of them and split on the other 11, a # or $ in a value is enough to get a different result

https://sniptide.com/blog/env-file