-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v3 - basic sitemap generation #580
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
do/should we cover images in sitemap for variant? |
Image support in the Next.js sitemap generator was recently added in a canary release (https://github.com/vercel/next.js/releases/tag/v15.0.0-canary.107). So unless it's a top priority we might want to wait for that to be available. We could test if our images are already available to search engines (e.g. not using JavaScript to load), which would reduce the need to include them in the sitemap. |
TODO: handle pages under subpaths (e.g. blog post at |
could also be that most of our images are for illustrations only, and that images for say news and costumer cases are more important. But yeah, I agree. Let's hold images until we've got more of the project defined. |
This should be solved when blog post routes are migrated to shared studio, see issue #592 |
92873dd
to
1c8e6aa
Compare
Further explanation is found here: #578
Automatic sitemap generation based on Sanity documents with a defined
slug
value. Sitemap is available to crawlers at/sitemap.xml
and the full url is included in a generatedrobots.txt
.We are assuming that all documents containing the field
slug
should be included in the sitemap. If this assumption is wrong, the GROQ query can be adjusted to for example only include specific document types (like blog and page).Added environment value
NEXT_PUBLIC_URL
for development and production, as this is required to provide fully qualitifed URLs in the sitemap.Checklist
Please ensure that you’ve completed the following checkpoints before submitting your pull request: