Skip to content

Sitemap accessible in browser but not fetched by Google Search Console #10

@stack-dhruv

Description

@stack-dhruv

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.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions