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

언어 처리, 메타데이터, 사이트맵 생성 로직 리팩터링, 최적화 #56

Merged
merged 28 commits into from
Jan 27, 2025

Conversation

witch-factory
Copy link
Owner

@witch-factory witch-factory commented Jan 27, 2025

주요 변경 내용

언어 처리

  • 리다이렉트 URL 생성을 위한 로직을 별도의 유틸리티 파일로 분리.
  • 언어 전환 로직을 최적화하여 fetch와 라우터 이동 동작을 독립적으로 처리.
  • 로케일 협상 로직을 변경하여 항상 리다이렉트 URL에 로케일을 포함하도록 변경.

메타데이터 개선

  • 메타데이터 생성용 헬퍼 함수를 제작하여 반복적인 작업을 단순화.
  • 기존 메타데이터 생성 파일 제거 및 타입 구조를 리팩터링.
  • 블로그의 설정을 관리하는 config 객체들을 다시 구조화하고 이를 메타데이터 생성에 반영

UI 및 유틸리티 업데이트

  • Footer, PostList 등 주요 UI 컴포넌트에 config와 메타데이터 변경 사항 반영.
  • 로케일에 따라 날짜를 포맷할 수 있는 국제화 유틸리티 함수를 추가.
  • 불필요한 글로벌 CSS 파일 및 사용하지 않는 className을 삭제.

코드 정리

  • 주석 및 실험적으로 적용했던 최적화 코드 제거.
  • 더 이상 사용되지 않는 코드 및 파일 삭제.

Copy link

vercel bot commented Jan 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
witch-next-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 27, 2025 4:08am

@witch-factory witch-factory merged commit f354749 into main Jan 27, 2025
3 checks passed
@witch-factory witch-factory deleted the lang-switch-opt branch January 27, 2025 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant