-
Couldn't load subscription status.
- Fork 850
Update docs following Next.js 16 middleware filename change #2745
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
our rule has been that the docs reflect whatever the latest version is - so all of these should be I agree that the callout should reflect that if the user is on an earlier version of Next.js, they need to use |
Okay sounds good. This is the sanity check I needed - thanks @alexisintech! |
|
@alexisintech have renamed all the |
Co-authored-by: Alexis Aguilar <[email protected]>
π Previews:
What does this solve?
One of the changes included in Next.js 16 is the change of name from
middleware.tstoproxy.ts. A user on the new version would still be able to usemiddleware.ts, but if someone on a older version of Next.js usesproxy.ts, things would break. This PR updates the docs to reflect on this change via a callout + renaming of file for code snippets.What changed?
middleware.tsfile.Note: Open to other suggestions on how to show this change. I'm not convinced we need the partial/callout on all pages.
Checklist