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 + Drizzle ORM + Husky + Lint-Staged + Vitest + Testing Library + Playwright + Storybook + Commitlint + VSCode + Netlify + PostCSS + Tailwind CSS ✨
https://nextjs-boilerplate.com
MIT License
8.7k stars 1.67k forks source link

Sitemap #260

Closed TungNguyenDocosan closed 5 months ago

TungNguyenDocosan commented 5 months ago

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

ixartz commented 5 months ago

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.

TungNguyenDocosan commented 5 months ago

This is so bad that it's still unfinished.

ixartz commented 5 months ago

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

TungNguyenDocosan commented 5 months ago

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

ixartz commented 5 months ago

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.

ixartz commented 5 months ago

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

TungNguyenDocosan commented 5 months ago

Good job bro

shukerullah commented 4 months ago

@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?

ixartz commented 4 months ago

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.