Skip to content

Add next routing server adapter input builder#94099

Draft
timneutkens wants to merge 2 commits into
codex/server-routing/audit-contractsfrom
codex/server-routing/adapter-layer
Draft

Add next routing server adapter input builder#94099
timneutkens wants to merge 2 commits into
codex/server-routing/audit-contractsfrom
codex/server-routing/adapter-layer

Conversation

@timneutkens
Copy link
Copy Markdown
Contributor

@timneutkens timneutkens commented May 25, 2026

What?

Adds an internal server adapter input builder that converts the live fsChecker route data into @next/routing-compatible route arrays and pathnames.

Why?

This is the next compatibility-first layer after the audit and contract tests: it lets future work compare or delegate selected route phases to @next/routing without changing live request handling yet.

How?

  • Converts live header, redirect, and rewrite routes using the same routing-utils conversion helpers used by adapter build output.
  • Converts filesystem dynamic routes and output pathnames into the shape expected by @next/routing.
  • Adds focused unit tests that run the generated inputs through @next/routing.resolveRoutes().

@github-actions
Copy link
Copy Markdown
Contributor

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.

1 participant