Skip to content

test(pages): cover metadata-like route filenames - #3014

Draft
leonwwest wants to merge 1 commit into
cloudflare:mainfrom
leonwwest:test/pages-metadata-filenames
Draft

test(pages): cover metadata-like route filenames#3014
leonwwest wants to merge 1 commit into
cloudflare:mainfrom
leonwwest:test/pages-metadata-filenames

Conversation

@leonwwest

Copy link
Copy Markdown

Closes #2923

Summary

  • add build-level regression coverage for Pages Router files whose basenames overlap App Router metadata conventions
  • cover sitemap, robots, manifest, icon, opengraph-image, and twitter-image
  • exercise both getStaticProps and getServerSideProps exports

The cases mirror the Next.js pages-app-router-filenames regression coverage while extending it across the metadata-like filenames called out in the issue.

Verification

  • pnpm test tests/pages-server-exports-security.test.ts
  • pnpm run check

Next.js reference: https://github.com/vercel/next.js/tree/canary/test/e2e/pages-app-router-filenames

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[nextjs-tracker] Pages Router files named sitemap/robots/icon/etc. must not be validated as App Router entries

1 participant