[FE] 마크다운 경고 콘솔문제 해결 및 http-proxy-middleware 설정 #127
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About
proxy 방식 변경
마크다운 경고 콘솔 해결
Description
1. proxy 방식 변경
pakcge.json의 proxy로 cors 문제를 개발환경에서 프로싱해서 해결할 수 있습니다. 하지만 추후에 더 유연한 환경설정을 위해 다양한 기능을 제공하는 http-proxy-middleware 라이브러리로 변경했습니다.
Ref: Proxying API Requests in Development - CRA 공식문서
2. 마크다운 경고 콘솔 해결
CRA관련 pr과 관련 있는 에러였습니다.
정확한 원인은 파악하지 못했지만, 임시적인 해결책은 찾았습니다. 임시적인 해결책이어서 추후에 문제가 될 수도 있다고 생각합니다.
Ref: nhn/tui.editor#2137 (comment)