使用
create-react-app,您需要
REACT_APP_在变量名之前添加前缀才能访问它。
例:
REACT_APP_API_URL=http://localhost:3000/apiREACT_APP_CALLBACK_URL=http://localhost:3005/callback
在这里查看更多信息

使用
create-react-app,您需要
REACT_APP_在变量名之前添加前缀才能访问它。
例:
REACT_APP_API_URL=http://localhost:3000/apiREACT_APP_CALLBACK_URL=http://localhost:3005/callback
在这里查看更多信息