Skip to content

Turbopack: Pages Router file named sitemap.js misclassified as App Router metadata route, breaks build with false getServerSideProps is not supported in app/ error - #97481

Closed
Arjunr7019 wants to merge 2 commits into
vercel:canaryfrom
Arjunr7019:fix/issue-97436

Conversation

@Arjunr7019

@Arjunr7019 Arjunr7019 commented Aug 18, 2026

Copy link
Copy Markdown

What changed?

  • Fixed the issue where a Pages Router sitemap.js file was incorrectly classified as an App Router metadata route.
  • Prevented the incorrect getServerSideProps is not supported in app/ error during the build.
  • Updated the route classification logic to correctly distinguish Pages Router files from App Router metadata routes.

Why?

A sitemap.js file in the Pages Router was being incorrectly identified as an App Router metadata route. This caused the build to fail with a misleading getServerSideProps is not supported in app/ error.

How?

Updated the route detection/classification logic so that sitemap.js files under the Pages Router are handled correctly and are not mistakenly treated as App Router metadata routes.

Related Issue

Fixes #97436

Arjunr7019 and others added 2 commits August 18, 2026 11:14
…uter metadata route, breaks build with false getServerSideProps is not supported in app/ error

 #97436
@Arjunr7019 Arjunr7019 changed the title Turbopack: Pages Router file named sitemap.js misclassified as App Ro… Turbopack: Pages Router file named sitemap.js misclassified as App Router metadata route, breaks build with false getServerSideProps is not supported in app/ error #97436 Aug 18, 2026
@Arjunr7019 Arjunr7019 changed the title Turbopack: Pages Router file named sitemap.js misclassified as App Router metadata route, breaks build with false getServerSideProps is not supported in app/ error #97436 Turbopack: Pages Router file named sitemap.js misclassified as App Router metadata route, breaks build with false getServerSideProps is not supported in app/ error Aug 18, 2026
@Arjunr7019 Arjunr7019 closed this Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant