Skip to content

Conversation

@ijjk
Copy link
Collaborator

@ijjk ijjk commented Jan 13, 2026

Summary

Fixes for the handler interface and PPR resume functionality.

Changes

  • Add getRequestHandlerWithMetadata export for passing metadata to handlers
  • Use namedRegex for route matching to capture params for PPR resume from rewrites
  • Prioritize _not-found app router page over pages/404.js
  • Fix prerender fallback handling for RSC routes with postponed state
  • Add vary header to prerender configs for app entries
  • Ensure page entry comes last in edge function file list
  • Filter internal Next.js query params (nxtP*, nxtI*) from rewrite headers

@changeset-bot
Copy link

changeset-bot bot commented Jan 13, 2026

🦋 Changeset detected

Latest commit: 2435ae2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@next-community/adapter-vercel Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ijjk ijjk marked this pull request as ready for review January 20, 2026 23:06
@ijjk ijjk merged commit 92f63c3 into main Jan 20, 2026
2 checks passed
@ijjk ijjk deleted the ijjk/resume-handler-fixes branch January 20, 2026 23:07
ijjk added a commit to vercel/next.js that referenced this pull request Jan 26, 2026
This applies fixes for outputs in `onBuildComplete` with various slight
differences from expected values. This also applies some fixes in the
route-module interface to ensure we install the process handlers for PPR
since currently that was done in `next-server` which we want to get rid
of and there was an edge case with query parsing logic in the
route-module.

Our E2E tests were run against this here to validate
https://github.com/vercel/next.js/actions/runs/21324578779 and failures
are matching existing failures on canary.

x-ref: nextjs/adapter-vercel#11
x-ref: vercel/vercel#14574

---------

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
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.

2 participants