Skip to content

[backport] Propagate adapter preferred regions#94200

Merged
timneutkens merged 1 commit into
next-16-2from
codex/backport-94123-to-next-16-2
May 28, 2026
Merged

[backport] Propagate adapter preferred regions#94200
timneutkens merged 1 commit into
next-16-2from
codex/backport-94123-to-next-16-2

Conversation

@timneutkens

Copy link
Copy Markdown
Contributor

Backports Propagate adapter preferred regions to next-16-2.

### What?

Propagate edge runtime preferredRegion metadata into adapter outputs and
add adapter-config coverage for an edge app route.

### Why?

Adapters need access to preferred region metadata from edge outputs when
generating provider-specific deployment output.

### How?

Copy edge function regions into output.config.preferredRegion and assert
the adapter build-complete output for a fixture route with
preferredRegion set to cdg1.

### Verification

- `pnpm --filter=next build`
- `NEXT_TEST_PREFER_OFFLINE=1 pnpm test-start-webpack
test/production/adapter-config/adapter-config.test.ts`

<!-- NEXT_JS_LLM_PR -->

(cherry picked from commit c0ce532)
@github-actions

github-actions Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: ec77906

@github-actions

github-actions Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Stats skipped

Commit: ec77906
View workflow run

@timneutkens timneutkens marked this pull request as ready for review May 28, 2026 17:06
@timneutkens timneutkens merged commit aef22fd into next-16-2 May 28, 2026
354 of 362 checks passed
@timneutkens timneutkens deleted the codex/backport-94123-to-next-16-2 branch May 28, 2026 18:13
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