-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
env 설정, msw 설정 #84
env 설정, msw 설정 #84
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
env와 msw까지 추가하시느라 고생많으셨습니다~~!
}), | ||
new webpack.DefinePlugin({ | ||
'process.env.BASE_URL': JSON.stringify(process.env.BASE_URL)}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이런식으로 일일히 환경변수를 추가해주어야 하나요..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
env 설정, msw 설정 고생 많으셨습니다~
기존 작업한 것들 병합 먼저 하는 게 어떨까 싶어서 일단 approve는 해두지 않았어요~
@ss0526100 @jaeml06
코드 리뷰 하면서 든 생각인데, 여러 작업이 서로 연관성이 있는 것이 아니라면, PR을 별도로 올리면 작업물을 리뷰하는 데 조금 더 용이할 것 같아요. 이따 병합할 때 이야기 해보면 좋을 것 같아요 😀
@@ -6,6 +6,7 @@ | |||
"scripts": { | |||
"test": "test", | |||
"start": "webpack serve --config webpack.dev.js", | |||
"start-prod": "webpack serve --config webpack.prod.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
production을 dev server로 확인하는 게 맞을까요?? 🧐
<App /> | ||
</React.StrictMode>, | ||
); | ||
async function enableMocking() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
지금 설정 기준으로, ENV가 development 인 경우 항상 api가 모킹되는 걸까요?
개발 환경일 때 mocking 여부를 선택할 수 있는 플래그가 있으면 어떨까 싶어서 여쭤봅니다~
hints: false, | ||
maxEntrypointSize: 512000, | ||
maxAssetSize: 512000 | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이건 무슨 설정일까요??
devServer: { | ||
historyApiFallback: true, | ||
open: true, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
개발 시 필요한 dev server가 production 빌드에 사용되는 게 어색한 감이 있는 것 같아요😅
PR의 목적이 무엇인가요?
.env 설정과 브러우저환경에서 msw 설정했습니다.
이슈 ID는 무엇인가요?
설명