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

[FIX] robots.txt, sitemap.xml 파일 경로 수정 #259

Merged
merged 2 commits into from
Mar 8, 2025
Merged

Conversation

seong-hui
Copy link
Member

@seong-hui seong-hui commented Mar 7, 2025

🛰️ 관련 이슈

해결한 이슈 번호를 작성해주세요
close #258

🧑‍💻 작업 내용

작업한 내용을 간략히 작성해주세요

  • React Router 경로 처리로 인해 robots.txt가 정상적으로 제공되지 않는 문제 해결하기 위해서 robots.txt, sitemap.xml의 경로를 public으로 이동하도록 수정했어요.
  • 기획측에서 전달해준 메타태그로 description을 수정하는 작업도 함께 진항했어요

🗯️ PR 포인트

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

  • Vite에서 public/ 폴더에 있는 파일은 정적 파일로 그대로 제공되기 때문에 React Router의 path="*" 라우팅과 충돌을 방지할 수 있다는 것을 알게되었어요

🚀 알게된 점

기록하며 개발하기!

📖 참고 자료 (선택)

참고했던 문서들 공유하기!

📸 스크린샷 (선택)

Copy link

github-actions bot commented Mar 7, 2025

🪷 Storybook 확인 🪷
🔗 https://677fa9af1269762b7858c29f-ahnzkofcdl.chromatic.com/

Copy link
Member Author

@seong-hui seong-hui left a comment

Choose a reason for hiding this comment

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

webhook test

Copy link
Collaborator

@bykbyk0401 bykbyk0401 left a comment

Choose a reason for hiding this comment

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

수정 감사합니다!!

Copy link
Collaborator

Choose a reason for hiding this comment

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

그래서 로티도 배포환경에서 인식이 안될때 public으로 바꿨답니당👍

Copy link
Collaborator

@Taew00k Taew00k left a comment

Choose a reason for hiding this comment

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

public 폴더에 대해서 잘 몰랐는데 리액트 라우터와의 충돌을 방지할 수 있다는 것 배워갑니다~~ 고생하셨어요

@seong-hui seong-hui merged commit d37e872 into develop Mar 8, 2025
4 checks passed
@maylh maylh deleted the fix/#258 branch March 29, 2025 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FIX] robots.txt, sitemap.xml 파일 경로 수정
3 participants