wasp-lang / wasp

The fastest way to develop full-stack web apps with React & Node.js.
https://wasp-lang.dev
MIT License
12.73k stars 1.13k forks source link

Support easy sharing of .env files #2076

Open Martinsos opened 1 month ago

Martinsos commented 1 month ago

Similar to how Hashicorp's vault works, we should make it easy for devs to share .env files they use during development among themselves, in the team.

There are solutions by dotenv team, there is Value by Hashicorp, and there are other solutions out there. We can look into the most fitting one and recommend it in our docs.

We can go further and once we have Wasp Cloud, we can make this one of the things that it takes care of for you, potentially.

Martinsos commented 1 month ago

Related to #175

Martinsos commented 4 weeks ago

I set up a solution for opensaas demo app (deployed to opensaas.sh) by using https://www.dotenv.org/ . I had a good experience, it is relatively simple although not trivial. I ended up versioning .env.client in git, and .env.server I ended up managing via vault-dotenv -> meaning we now have .env.vault instead of .env.server, and that .env.vault gets versioned, and is encrypted and can (and should be) versioned. That is really the crux of it. It is free for small teams and simple cases, paid for > 3 people and for extra customization. We could go with this, recommend it in docs, and potentially even offer some set up or support out of the box.