Skip to content

Commit

Permalink
fix: 修复本地启动时 React Developer Tools 无法看到具体组件
Browse files Browse the repository at this point in the history
  • Loading branch information
lingting committed Nov 9, 2022
1 parent 53dc363 commit c0d1c1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import routes from './routes';

import settings from './settings';

const { REACT_APP_ENV } = process.env;

const isStart = REACT_APP_ENV === 'start';
const isStart = process.env.REACT_APP_ENV === 'start';

export default defineConfig({
hash: true,
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
"precommit": "lint-staged",
"prettier": "prettier -c --write \"src/**/*\"",
"start": "cross-env PORT=9002 HOST=0.0.0.0 REACT_APP_ENV=dev UMI_ENV=dev umi dev",
"start:uat": "cross-env PORT=9002 HOST=0.0.0.0 REACT_APP_ENV=dev UMI_ENV=uat umi dev",
"start:prod": "cross-env PORT=9002 HOST=0.0.0.0 REACT_APP_ENV=dev UMI_ENV=prod umi dev",
"start": "cross-env PORT=9002 HOST=0.0.0.0 REACT_APP_ENV=start UMI_ENV=dev umi dev",
"start:uat": "cross-env PORT=9002 HOST=0.0.0.0 REACT_APP_ENV=start UMI_ENV=uat umi dev",
"start:prod": "cross-env PORT=9002 HOST=0.0.0.0 REACT_APP_ENV=start UMI_ENV=prod umi dev",
"tsc": "tsc --noEmit"
},
"lint-staged": {
Expand Down

0 comments on commit c0d1c1e

Please sign in to comment.