virtualcoffee.io
virtualcoffee.io copied to clipboard
feat: create a sitemap.xml
- https://virtualcoffee.io/sitemap.xml should be a thing, but it's not
I'd like to take a shot at this issue.
Here's the Next.js docs about sitemaps:
https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap
I'd prefer though not to hand-write a sitemap, since it will easily get out of date as we update / add pages. This package looks promising: https://github.com/iamvishnusankar/next-sitemap
Or we could use our existing data functions and generate a sitemap via sitemap.ts
hey! can i work on this?
@manya706 its all you!
Hi! while working on this, next-sitemap module can only be installed on stable versions of react and next.js , so i had to change version of the same. If you want I can move forward with a different approach too.
specific error faced- \virtualcoffee.io> npm install next-sitemap npm ERR! code EOVERRIDE npm ERR! Override for react@canary conflicts with direct dependency
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\manya\AppData\Local\npm-cache_logs\2024-10-05T17_56_19_413Z-debug-0.log
@manya706 we definitely need the versions we have for react and next. Might be able to use the overrides
key in package.json
to tell npm to ignore that requirement though 👍
@manya706 also please use pnpm
to install/manage dependencies
okay thanks :)