My biggest gripe with the dotenv pattern is people treating it like a configuration file. If you want a configuration file, just use JSON/YAML/INI/XML. A lot of the implementations now try to add "improvements" to the format that makes them now not always reliably compatible with just sourcing them in bash, or as Docker environment file, which just kind of defeats the purpose?
I'm also not sure what's so hard to just... source the .env
file before you run your app.