Skip to content

Commit

Permalink
Revert "[FE] build:dev 스크립트에서 노드 환경을 production으로 수정 (#324)"
Browse files Browse the repository at this point in the history
This reverts commit 9bbd94e.
  • Loading branch information
hwinkr authored Aug 23, 2024
1 parent 9bbd94e commit 7d2a10b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"prod": "webpack server --open --config webpack.prod.js",
"dev": "webpack server --open --config webpack.dev.js",
"build:prod": "cross-env REACT_APP_ENABLE_MSW=false NODE_ENV=production webpack --config webpack.prod.js && npm run sentry:sourcemaps",
"build:dev": "cross-env REACT_APP_ENABLE_MSW=false NODE_ENV=production webpack --config webpack.dev.js",
"build:dev": "cross-env REACT_APP_ENABLE_MSW=false NODE_ENV=development webpack --config webpack.dev.js",
"sentry:sourcemaps": "sentry-cli sourcemaps inject ./dist && sentry-cli sourcemaps upload -o momo2024 -p momo-harry-test /dist",
"lint:css": "stylelint '**/*.styles.ts' --fix",
"test": "jest",
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import theme from '@styles/theme';
import App from './App';

const enableMocking = async () => {
if (process.env.REACT_APP_ENABLE_MSW && process.env.REACT_APP_ENABLE_MSW === 'false') return;

if (process.env.NODE_ENV !== 'development') {
return;
}
Expand Down

0 comments on commit 7d2a10b

Please sign in to comment.