-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Title: Sitemap accessible in browser but not fetched by Google Search Console
Description:
I have deployed my website using Next.js and the sitemap is successfully generated and accessible via the browser at:
👉 https://stack-dhruv.vercel.app/sitemap.xml
However, when I submit this URL in Google Search Console, it fails to fetch the sitemap. The console throws a fetch error, even though the file is clearly accessible.
Expected behavior:
Google Search Console should be able to access and parse the sitemap.
Steps to reproduce:
1. Deploy site using Next.js and dynamic sitemap generation.
2. Access the sitemap via browser — works correctly.
3. Submit sitemap URL to Google Search Console — fetch fails.
Environment:
• Framework: Next.js
• Hosting: Vercel
Additional context:
This could be related to headers, caching, or how the sitemap is generated (e.g., getServerSideProps or custom server). Any guidance or fix would be appreciated.

stack-dhruv
Metadata
Metadata
Assignees
Labels
No labels