#1. 刚才又浪费了一点点时间在debug上。 .env文件要放在working space root文件上

Follow

且要在react上面使用 .env, 变量名称前面需要加 REACT_APP_ 使用的时候,不用require('dotenv').config。当然最重要的,别忘记安装dotenv

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.