当前的环境变量可以通过Documentation Index
Fetch the complete documentation index at: https://bun.zhcndoc.com/llms.txt
Use this file to discover all available pages before exploring further.
process.env 访问。
Bun 也通过
Bun.env 暴露这些变量;它是 process.env 的别名。
要将所有当前设置的环境变量打印到命令行,运行
bun --print process.env。这对于调试很有用。
terminal
更多关于在 Bun 中使用环境变量的信息,请参阅 文档 > 运行时 > 环境变量。