Repository navigation
[skills] Sync routing-middleware with current docs - #218
Merged
Merged
Conversation
<!-- vercel-plugin-drift-agent -->
vercel-gh-bot-2
Bot
force-pushed
the
eve-drift/routing-middleware
branch
from
September 24, 2026 16:57
7edbbb4 to
edde5be
Compare
Next.js 16 is stable, and the codemods reference uses `npx @next/codemod@latest middleware-to-proxy .`. Keep the trailing `.` from the bot's change and drop `@canary`.
molebox
approved these changes
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://nextjs.org/docs/app/building-your-application/routing/middleware, which now redirects.Correction: updated to the canonical URL
https://nextjs.org/docs/app/api-reference/file-conventions/proxy. Next.js deprecated themiddlewarefile convention and renamed it toproxy(as the skill body itself already correctly documents in its "CRITICAL: Middleware Disambiguation" section).Source: https://nextjs.org/docs/app/api-reference/file-conventions/proxy (version 16.3.6, lastUpdated 2026-09-07) — "The
middlewarefile convention is deprecated and has been renamed toproxy" and version history: "v16.0.0 | Middleware is deprecated and renamed to Proxy."Verification:
run_plugin_checks— build ✅, typecheck ✅, validate ✅, test ✅ (1030 pass / 0 fail).Test updates: none.
Upstream contradictions: n/a (standalone skill).
Not changed: the rest of the skill body (proxy.entrypoint, disambiguation table, CVE-2025-29927 note, matcher config, request limits, CDN routing mechanisms) was checked against https://vercel.com/docs/routing-middleware, /routing-middleware/api, and /routing-middleware/getting-started (all unchanged since the skill's last commit) and still matches current docs.
Opened automatically by the vercel-plugin drift agent. Review before merge.
Drift scan update 2026-09-24
metadata.docscitedhttps://nextjs.org/docs/app/building-your-application/routing/middleware, which now redirects. Correction: updated the citation to the canonical URLhttps://nextjs.org/docs/app/api-reference/file-conventions/proxy(redirect, 200,canonicalUrl: https://nextjs.org/docs/app/api-reference/file-conventions/proxy).npx @next/codemod@latest middleware-to-proxy". Correction: the Next.js docs give the command asnpx @next/codemod@canary middleware-to-proxy .(uses the@canarydist-tag and a required target-directory argument, not@latestwith no target). Source: https://nextjs.org/docs/app/api-reference/file-conventions/proxy, section "How to Migrate": "Next.js provides a codemod to migrate frommiddleware.tstoproxy.ts. You can run the following command to migrate:npx @next/codemod@canary middleware-to-proxy ."Verification:
run_plugin_checks— build, typecheck, validate, and test all passed (1030 pass, 0 fail).Test updates: none needed.
Upstream contradictions: n/a (standalone skill).
Not changed:
/v1/projects/{projectId}/routesendpoints (get, add, stage, edit, delete, get-versions, promote/restore/discard, plus the routes root) on vercel.com/docs/rest-api/project-routes/*.@vercel/global-configpackage andget()example confirmed against https://vercel.com/docs/global-config/global-config-sdk.NextRequest.geo/NextRequest.ipremoval claim confirmed consistent with current https://nextjs.org/docs/app/api-reference/functions/next-request (no geo/ip members documented).Opened automatically by the vercel-plugin drift agent. Review before merge.