nextjs - ✅(Solved) Fix Docs: proxy runtime is inconsistent (edge vs nodejs) [1 pull requests, 2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#85344Fetched 2026-04-08 02:16:19
View on GitHub
Comments
2
Participants
3
Timeline
10
Reactions
2
Author
Assignees
Timeline (top)
commented ×2assigned ×1closed ×1cross-referenced ×1

Fix Action

Fixed

PR fix notes

PR #85337: docs: fix proxy matcher overflow

Description (problem / solution / changelog)

Also closes: https://github.com/vercel/next.js/issues/85344

Changed files

  • docs/01-app/01-getting-started/16-proxy.mdx (modified, +1/-4)
  • docs/01-app/02-guides/authentication.mdx (modified, +1/-1)
  • docs/01-app/03-api-reference/03-file-conventions/proxy.mdx (modified, +12/-1)
RAW_BUFFERClick to expand / collapse

What is the documentation issue?

The docs are inconsistent about whether the proxy.ts uses edge or node runtime.

  • The v16 blog post says:

    proxy.ts runs on the Node.js runtime

  • The proxy docs don’t mention either runtime
  • The migration guide for middleware to proxy says:

    Middleware defaults to run at the Edge Runtime, which can run closer to the client, separated from the app's region. These behaviors align better with the term "proxy" and provide a clearer purpose of the feature

  • Auth docs mention proxy using edge runtime:

    Proxy uses the Edge Runtime, check if your Auth library and session management library are compatible

Note also: proxy docs say:

Proxy is not a good fit for: Session management

…which is odd given its a documented approach!

Is there any context that might help us understand?

Middleware -> Proxy migration in v16

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/app/getting-started/proxy

extent analysis

TL;DR

Update the proxy.ts documentation to consistently state that it uses the Edge Runtime, as implied by multiple sources including the migration guide and auth docs.

Guidance

  • Review the documentation for proxy.ts and ensure it accurately reflects the runtime environment, which appears to be the Edge Runtime based on the migration guide and auth docs.
  • Verify the consistency of runtime information across relevant documentation pages, including the proxy.ts docs, migration guide, and auth docs.
  • Consider adding a note to the proxy.ts docs to clarify its limitations, such as not being a good fit for session management, despite being mentioned as a documented approach in the auth docs.

Notes

The inconsistency in documentation may be due to the recent migration from middleware to proxy in v16, and updating the docs to reflect the correct runtime environment should help resolve the issue.

Recommendation

Apply workaround: Update the proxy.ts documentation to reflect the correct runtime environment, as this appears to be the most straightforward solution to resolve the inconsistency in the documentation.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING