Refactor(project): 환경변수 설정 통일 및 파일 구조 정리 v2 #88
Closed
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.
수정 사유 Reason for modification
수정된 소스 내용 Modified source
프로젝트의 환경변수 설정 불일치와 파일 확장자 혼재 문제를 해결하여, 코드베이스 일관성을 향상시키고 유지보수성을 개선했습니다.
주요 변경 사항
환경변수 설정 통일
src/config.js파일을 제거하고src/config/index.js하나로 통일import.meta.env)으로 통일파일 확장자 정리
.jsx확장자 사용.js확장자 사용중복 파일 제거
src/api/egovFetch.jsx삭제 (egovFetch.js 사용)src/constants/code.jsx,url.jsx삭제 (각각 .js 버전 사용)src/utils/bbsFormVaildator.jsx,calc.jsx삭제 (.js 버전 사용)의존성 최적화
package.json에서 순환 참조 의존성("egovframe-template-simple-react": "file:") 제거react-scripts의존성 제거Import 경로 통일
@/별칭 사용으로 통일개선 효과
변경 통계
JUnit 테스트 JUnit tests
테스트를 완료하셨으면 다음 항목에 [대문자X]로 표시해 주세요. When you're done testing, check the following items.
테스트 브라우저 Test Browser
테스트를 진행한 브라우저를 선택해 주세요. Please select the browser(s) you ran the test on.
테스트 결과 Test Results
✅ 개발 서버 실행 테스트
npm run dev✅ 의존성 설치 테스트
npm install