-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Push #419
fix: Push #419
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Still some issues with basePath on the pages router, where basePath is applied twice. Relevant Next.js issues:
Edit: renaming the failing test folder seems to "fix" the issue, but some other names also yield this error (eg: Definitely won't bother chasing non-deterministic bloom filter errors, so I'll just reorder the test directories to avoid clashes. |
396af4c
to
6f03d9d
Compare
6f03d9d
to
da2ce6d
Compare
Going through the history API only on shallow updates doesn't notify the pages router, which can handle shallow updates directly. Definitely a hack, but it allows also setting the asPath for dynamic routes. There is still an issue with basePath being applied twice, but that's an internal Next.js bug for another day.
Disabling the bloom filter causing invalid collisions between the pages and app routers.
5410715
to
be8c008
Compare
🎉 This PR is included in version 1.13.2-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.13.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
History: push is currently broken on Next.js 14.0.3 in the app router without the WHS flag, and has been broken for a while in the pages router.
Adding tests to cover those cases, and looking for ways to solve it, though in the case of the app router it may depend on vercel/next.js#58861 to be made available.
Getting a consistent fix in the pages router that doen't break dynamic routes or basePath support is tricky. Initially I thought it was pointless to go through the History API in the pages router, as it supports shallow routing, but always going through the router without extra care seems to break in some combinations of settings and situations.