Please note that you shouldn’t commit
.env.*files to your source control and rather use options given by your Continuous Deployment (CD) provider.
在 Gatsby.js 文档中提到, .env.* 不应该提交到 git 中,但是 .env.* 里的变量不都是给项目用的吗?最终编译后可以在代码中找到对应的值,所以对用户而言,这些变量都是 public 的。
所以我觉得 .env.* 可以放到 git 中,即使是一个开源项目。

