Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@SarahSoutoul
Copy link
Contributor

@SarahSoutoul SarahSoutoul commented Oct 27, 2025

πŸ”Ž Previews:

What does this solve?

One of the changes included in Next.js 16 is the change of name from middleware.ts to proxy.ts. A user on the new version would still be able to use middleware.ts, but if someone on a older version of Next.js uses proxy.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?

  • Added a partial containing a callout that appears in all pages referring to the middleware.ts file.
  • Renamed the code snippets filenames to show the new naming.

Note: Open to other suggestions on how to show this change. I'm not convinced we need the partial/callout on all pages.

Checklist

  • I have clicked on "Files changed" and performed a thorough self-review
  • All existing checks pass

@vercel
Copy link

vercel bot commented Oct 27, 2025

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

Project Deployment Preview Updated (UTC)
clerk-docs Ready Ready Preview Oct 28, 2025 7:56pm

@SarahSoutoul SarahSoutoul marked this pull request as ready for review October 27, 2025 18:19
@SarahSoutoul SarahSoutoul requested a review from a team as a code owner October 27, 2025 18:19
@alexisintech
Copy link
Member

our rule has been that the docs reflect whatever the latest version is - so all of these should be proxy.ts instead of middleware|proxy.ts

I agree that the callout should reflect that if the user is on an earlier version of Next.js, they need to use middleware.ts instead of proxy.ts - but I don't think we should be halving the file names like the current PR suggests. I think it might be too confusing :/

@SarahSoutoul
Copy link
Contributor Author

our rule has been that the docs reflect whatever the latest version is - so all of these should be proxy.ts instead of middleware|proxy.ts

I agree that the callout should reflect that if the user is on an earlier version of Next.js, they need to use middleware.ts instead of proxy.ts - but I don't think we should be halving the file names like the current PR suggests. I think it might be too confusing :/

Okay sounds good. This is the sanity check I needed - thanks @alexisintech!

@SarahSoutoul
Copy link
Contributor Author

@alexisintech have renamed all the middleware.ts files to proxy.ts, and updated the callout. Let me know thoughts!

@SarahSoutoul SarahSoutoul merged commit 33c2605 into main Oct 28, 2025
8 checks passed
@SarahSoutoul SarahSoutoul deleted the ss/DOCS-11099 branch October 28, 2025 19:57
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.

3 participants