我有.env.local与
REACT_APP_BACKEND_BASEURL=http://localhost:8080/
Run Code Online (Sandbox Code Playgroud)
并.env.development与
REACT_APP_BACKEND_BASEURL=http://deployedserverurl:8080/
Run Code Online (Sandbox Code Playgroud)
如何在启动时选择正确的env文件?就像现在一样,它更喜欢本地的dev env文件.
npm start --env=local 似乎不起作用,我错过了什么?