morethanmin / morethan-log

😎 A static blog using notion database
https://morethan-log.vercel.app
MIT License
1.89k stars 1.51k forks source link

[Bug]: Unavailable Dynamic Sitemap #336

Closed yureutaejin closed 2 months ago

yureutaejin commented 7 months ago

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 #19
  3. Push branch and Deploy to Vercel

Browser

mac OS

Validations

pg56714 commented 3 months ago

@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 commented 2 months ago

@pg56714

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