TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Environment Variables: For and Against

25 点作者 sriharis大约 6 年前

2 条评论

A2017U1大约 6 年前
Warning: this isn&#x27;t fun to read on mobile<p>All they had to do was change the file extension to .md
评论 #19261704 未加载
prepend大约 6 年前
I thought it was normal practice not to export environment variables so they are only available to a particular process.<p>I think env variables are bad for passing info between processes, but are good for loading different configurations into processes consistently.<p>I always load my env from some config file, but I like that the apps don’t care how config gets stored. I like the abstraction of the process not needing to be aware of how config is managed.