virtualcoffee.io icon indicating copy to clipboard operation
virtualcoffee.io copied to clipboard

feat: create a sitemap.xml

Open BekahHW opened this issue 9 months ago • 8 comments

  • https://virtualcoffee.io/sitemap.xml should be a thing, but it's not

BekahHW avatar May 02 '24 13:05 BekahHW

I'd like to take a shot at this issue.

eternalmaha avatar Jun 25 '24 02:06 eternalmaha

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

danieltott avatar Sep 30 '24 16:09 danieltott

hey! can i work on this?

manya706 avatar Oct 04 '24 09:10 manya706

@manya706 its all you!

danieltott avatar Oct 05 '24 17:10 danieltott

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 avatar Oct 05 '24 18:10 manya706

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

danieltott avatar Oct 07 '24 16:10 danieltott

@manya706 also please use pnpm to install/manage dependencies

danieltott avatar Oct 07 '24 16:10 danieltott

okay thanks :)

manya706 avatar Oct 07 '24 16:10 manya706