Skip to content
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

Merged
merged 5 commits into from
Jul 22, 2024
Merged

env 설정, msw 설정 #84

merged 5 commits into from
Jul 22, 2024

Conversation

jaeml06
Copy link
Contributor

@jaeml06 jaeml06 commented Jul 21, 2024

PR의 목적이 무엇인가요?

.env 설정과 브러우저환경에서 msw 설정했습니다.

이슈 ID는 무엇인가요?

설명

image

@jaeml06 jaeml06 added FE 프론트엔드 관련 이슈입니다. ⚙ 환경설정 chore (빌드 스크립트 등 환경 설정) labels Jul 21, 2024
Copy link
Contributor

@ss0526100 ss0526100 left a 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)}),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이런식으로 일일히 환경변수를 추가해주어야 하나요..?

Copy link
Contributor

@cys4585 cys4585 left a 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",
Copy link
Contributor

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() {
Copy link
Contributor

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
},
Copy link
Contributor

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,
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

개발 시 필요한 dev server가 production 빌드에 사용되는 게 어색한 감이 있는 것 같아요😅

@jaeml06 jaeml06 merged commit f87ed57 into develop-frontend Jul 22, 2024
@jaeml06 jaeml06 deleted the chore-#82 branch July 22, 2024 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FE 프론트엔드 관련 이슈입니다. ⚙ 환경설정 chore (빌드 스크립트 등 환경 설정)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants