使用环境变量env 配置,在src/config/config.default里获取不到变量 #3442
Unanswered
hisunny520
asked this question in
Q&A
Replies: 1 comment
-
你可以在dotenv.config();之后确认环境变量值是否存在,如果没有,则是 dotenv 的问题,如果存在,则应该是启动逻辑顺序问题。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the problem(描述问题)
使用环境变量env 配置在src/config/config.default里获取不到变量; 哪里出问题了吗?
参考配置http://www.midwayjs.org/docs/env_config#%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F%E5%92%8C%E9%85%8D%E7%BD%AE
Midway Versions(Midway 版本)
使用环境变量env 配置在src/config/config.default里获取不到变量; 哪里出问题了吗?
Beta Was this translation helpful? Give feedback.
All reactions