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
