【发布时间】:2020-09-06 12:26:02
【问题描述】:
CreateReactApp 文档显示您可以使用有限数量的 .env 文件。 https://create-react-app.dev/docs/adding-custom-environment-variables/#adding-development-environment-variables-in-env
我想为其他环境使用更多的 .env 文件,但始终使用 .env.development。
如何使用其他文件?我找到了这篇文章,但它对我不起作用。 https://medium.com/@tacomanator/environments-with-create-react-app-7b645312c09d
我正在使用react-scripts v3.4.1
【问题讨论】:
标签: reactjs create-react-app dotenv env-cmd