ixartz / Next-js-Boilerplate

🚀🎉📚 Boilerplate and Starter for Next.js 14+ with App Router and Page Router support, Tailwind CSS 3.4 and TypeScript ⚡️ Made with developer experience first: Next.js + TypeScript + ESLint + Prettier + Husky + Lint-Staged + Jest + Testing Library + Cypress + Storybook + Commitlint + VSCode + Netlify + PostCSS + Tailwind CSS

Home Page:https://nextjs-boilerplate.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sitemap

TungNguyenDocosan opened this issue · comments

Currently your sitemap is not working well, please check it again

Indeed, the automatic sitemap is not working well. For the time being, you can still use: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap, but you need to manually define it.

This is so bad that it's still unfinished.

The project is totally open to contribution, you can make a PR to fix the issue. I'm happy to merge it.

For your reference, the automatic sitemap is the cherry on the cake. The official way to do it is the manual process: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap

If it has to be done manually, I think you should leave the next-sitemap library out of your project

Indeed, it will make more sense to remove next-sitemap library from the project. And, only using the official and manual way.

Totally open to PR.

As you suggested, next-sitemap has been removed and the project now use the official way.

Maybe it'll add it back if it's working properly with i18n for an automatic sitemap.xml and robots.txt

Good job bro

@ixartz Looking to create a dynamic sitemap that updates with portfolio & blogs with this new built-in approach. Any suggestions or preferred methods, or do I need to write the sitemap entries manually?

The project follows the official Next.js way to generate Sitemap: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap

You can find all the information on the official documentation.