arco-design-pro
arco-design-pro copied to clipboard
支持环境变量配置
- [x] I'm sure this does not appear in the issue list of the repository
Basic Info
What are the similar cases of this feature
添加.env文件,可读取process.env
What problem does this feature solve?
添加.env文件,读取process.env为空
Extra info
# .env 文件
REACT_APP_DOCUMENT_TITLE = arco design
/* index.ts */
console.log(process.env);
// {}
console.log(process.env.REACT_APP_DOCUMENT_TITLE);
// undefined
收到,我们正在进行 pro 的重构,会将环境变量的问题考虑进来,感谢建议~
是否有想在react-app-env.d.ts文件中添加环境变量配置
是否有想在react-app-env.d.ts文件中添加环境变量配置
在不同架构下,用户自定义的环境变量可以百度一下怎么添加,我们暂时不会将自定义环境变量放在默认场景