Ask HN: Wouldn't it be much easier if you compress all env vars into one?

Share This Post

In most apps I develop, there’s at most 3 groups of environments, local – staging – prod.

Wouldn’t it be easier to just join all env vars needed for each environment into a base64 encoded env var, and then just pass that into the given app?

I feel like there should be less room for error, and it’s easy to add new services. There wouldn’t be need for cloud vendors like vercel to namespace env vars, you would be already doing it yourself.

Yeah, maybe a small cli utility to generate those envs would be cool, but it looks like that wouldn’t introduce much friction.

I can’t be the first one to think about this, has this been tried?

Thanks for your input!

Edit: clarity


Comments URL: https://news.ycombinator.com/item?id=45906618

Points: 1

# Comments: 0

Source: news.ycombinator.com

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Do You Want To Boost Your Business?

drop us a line and keep in touch

We are here to help

One of our technicians will be with you shortly.