Skip to content

Backport: new view-transitions guide, update and fixes#92264

Merged
icyJoseph merged 5 commits intonext-16-2from
backport/docs-fixes-16.2.3
Apr 2, 2026
Merged

Backport: new view-transitions guide, update and fixes#92264
icyJoseph merged 5 commits intonext-16-2from
backport/docs-fixes-16.2.3

Conversation

@icyJoseph
Copy link
Copy Markdown
Member

Publishing:

  1. 6a2045936f - docs: add middleware bypass note to CDN caching guide (docs: add middleware bypass note to CDN caching guide #92132)
  2. 495d50f187 - docs: document revalidateTag's required second argument in upgrade guide (docs: document revalidateTag's required second argument in upgrade guide #92134)
  3. faa4b99296 - docs: local images referenced by remote source (docs: local images referenced by remote source #92178)
  4. 0167a02695 - Docs/adapters review (Docs/adapters review #92223)
  5. 2622a53942 - docs: vt demo guide (docs: vt demo guide #92249)

ijjk and others added 5 commits April 2, 2026 17:29
## Summary
- add a Good to know note in the CDN Caching guide
- clarify that if Proxy/Middleware runs behind the CDN cache,
middleware-dependent requests should bypass cache so Proxy/Middleware
remains the source of truth

---------

Co-authored-by: Joseph <[email protected]>
…ide (#92134)

### What?

Add a before/after migration snippet to the version 16 upgrade guide
showing the old single-argument `revalidateTag('posts')` and the new
required two-argument `revalidateTag('posts', 'max')` signature. Also
mention the TypeScript error users will see and the `updateTag`
alternative for immediate expiration.

### Why?

Users upgrading from Next.js 15 to 16 encounter `Expected 2 arguments,
but got 1` when using the old single-argument syntax. The upgrade guide
previously only showed the new code without showing the old pattern,
requiring users to search externally to understand what changed.

### How?

- Added a concise `// Before` / `// After` code block showing the
migration, matching the convention used elsewhere in the upgrade guide
(e.g. `next/legacy/image`)
- Added a note that the single-argument form produces a TypeScript error
- Added a note pointing to `updateTag` as the alternative for immediate
expiration
- Kept the original full example with stale-while-revalidate behavior
explanation

## PR checklist (Improving Documentation)

- Run `pnpm prettier-fix` to fix formatting issues before opening the PR
- Follow the docs contribution guide:
https://nextjs.org/docs/community/contribution-guide
It was discovered that one could let a remote source, safely-ish, load
local images, which has the benefit of providing, width, height, src,
and blur-* props which we could pass to next/image.

Closes:
https://linear.app/vercel/issue/DOC-6288/local-images-referenced-by-a-remote-source
Some corrections to the adapters docs.

- The example deploy script ran `cat .next/BUILD_ID` before `pnpm
build`. Under `set -euo pipefail` that kills the script immediately
since the file doesn't exist yet. Moved the build step first.

- `resolveRoutes` requires `URL` and `Headers` objects, not strings. The
example would cause TypeScript/runtime errors.

- Also documented the 6 return fields ~ other adapters might need to use
all of them for redirects, external rewrites, and middleware
short-circuiting.
@nextjs-bot nextjs-bot added created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation. labels Apr 2, 2026
@icyJoseph icyJoseph changed the title Backport/docs fixes 16.2 Backport: docs guides, update and fixes 16.2 Apr 2, 2026
@icyJoseph icyJoseph changed the title Backport: docs guides, update and fixes 16.2 Backport: new guide, update and fixes Apr 2, 2026
@icyJoseph icyJoseph changed the title Backport: new guide, update and fixes Backport: new view-transitions guide, update and fixes Apr 2, 2026
@icyJoseph icyJoseph marked this pull request as ready for review April 2, 2026 15:36
@icyJoseph icyJoseph merged commit b2f208a into next-16-2 Apr 2, 2026
73 checks passed
@icyJoseph icyJoseph deleted the backport/docs-fixes-16.2.3 branch April 2, 2026 15:46
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation. locked

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants