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

[Bug]: Unavailable Dynamic Sitemap #336

Closed
2 tasks done
yureutaejin opened this issue Feb 4, 2024 · 2 comments
Closed
2 tasks done

[Bug]: Unavailable Dynamic Sitemap #336

yureutaejin opened this issue Feb 4, 2024 · 2 comments

Comments

@yureutaejin
Copy link

Describe the bug

안녕하세요. 블로그 잘 사용하던 중에 궁금한 게 있어 이슈 남깁니다.

현재 next site config를 사용해서 배포할 때는 정적으로 sitemap을 생성하는 것을 확인했습니다.
하지만 노션 페이지 추가에 따라 동적으로 sitemap이 변경되지 않는 것 같습니다.
이전 #19 에서 설명하신 /page/sitemap.xml.js가 현재는 main 브랜치에 보이지 않더군요. 포스팅보고 임의로 추가해서 진행도 해보고, 다른 next js 포스팅들 보고도 해봤는데 생성되지 않아서 남깁니다.
제가 아는 동적 sitemap 생성과 의미가 다른건가요? ( notion page 추가 시, 각 페이지 slug 생성에 따라 sitemap에도 추가 생성)
next js에 대해 문외한이라 죄송합니다.

To reproduce

  1. Go to /page folder and create /page/sitemap.xml.js
  2. Make a code according to Dynamically create sitemap.xml in Next.js #19
  3. Push branch and Deploy to Vercel

Browser

mac OS

Validations

@pg56714
Copy link
Contributor

pg56714 commented Jun 6, 2024

@yureutaejin fix done

If you prefer not to wait for the author to merge the changes, you can review the code I modified and add it to your project yourself.

After making the modifications, please set up a new project on Vercel; otherwise, the changes will not take effect.

@yureutaejin
Copy link
Author

yureutaejin commented Jun 10, 2024

@pg56714

OMG...Thanks for your contribution ^^
I will try it on my fork => It works!!! Thank you!!!

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

No branches or pull requests

2 participants