Skip to content

Conversation

@nicholasio
Copy link
Member

@nicholasio nicholasio commented Dec 29, 2025

Description of the Change

Closes #

How to test the Change

Changelog Entry

Added - New feature
Changed - Existing functionality
Deprecated - Soon-to-be removed feature
Removed - Feature
Fixed - Bug fix
Security - Vulnerability
Developer - Non-functional update

Credits

Props @username, @username2, ...

Checklist:


Note

Ensures Next.js pages router creates proper rewrites for localized and default routes, while leaving app router behavior unchanged.

  • Add locale-aware rewrite generation (plus non-locale default) for cache-healthcheck, block-library.css, feed, robots.txt, sitemap.xml, :sitemap(.*sitemap.*\.xml), and ads.txt
  • Special-case sitemap stylesheet /:path(.*main-sitemap\.xsl) to generate both default and per-locale rewrites (no multisite prefix)
  • Preserve multisite prefixes and host header checks across all generated rewrites; skip i18n rewrites when using the app router
  • Add comprehensive tests covering pages vs app router, single/multisite, feed/sitemap/xsl handling, and host checks
  • Add changeset for @headstartwp/next patch release

Written by Cursor Bugbot for commit 6796e54. This will update automatically on new commits. Configure here.

@changeset-bot
Copy link

changeset-bot bot commented Dec 29, 2025

🦋 Changeset detected

Latest commit: 6796e54

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@headstartwp/next Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Dec 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
headstartwp-app-router Ready Ready Preview, Comment Dec 29, 2025 1:06pm
headstarwp Ready Ready Preview, Comment Dec 29, 2025 1:06pm

@github-actions
Copy link
Contributor

📦 Next.js Bundle Analysis for @10up/wp-nextjs-app

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 83.62 KB (🟢 -42.45 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

@github-actions
Copy link
Contributor

📦 Next.js Bundle Analysis for @10up/headstartwp

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

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.

1 participant