React CRA的.env加顺序
Note: this feature is available with react-scripts@1.0.0 and higher.
默认:
npm start
:.env.development.local
,.env.local
,.env.development
,.env
npm run build
:.env.production.local
,.env.local
,.env.production
,.env
参考:
https://create-react-app.dev/docs/adding-custom-environment-variables/