Skip to content

.env里声明的环境变量怎么注入到业务代码里 #16754

Answered by PPPeony
PPPeony asked this question in Q & A
Discussion options

You must be logged in to vote

解决问题了,我参考的是这个帖子#14330
我将taro的版本号升级到3.6+,自定义模式的环境变量也可以注入了。

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@PPPeony
Comment options

Answer selected by PPPeony
Comment options

You must be logged in to vote
1 reply
@TheKonka
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q & A
Labels
None yet
2 participants