Backport: new view-transitions guide, update and fixes#92264
Merged
Backport: new view-transitions guide, update and fixes#92264
Conversation
## 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.
aurorascharff
approved these changes
Apr 2, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Publishing:
6a2045936f- docs: add middleware bypass note to CDN caching guide (docs: add middleware bypass note to CDN caching guide #92132)495d50f187- docs: document revalidateTag's required second argument in upgrade guide (docs: document revalidateTag's required second argument in upgrade guide #92134)faa4b99296- docs: local images referenced by remote source (docs: local images referenced by remote source #92178)0167a02695- Docs/adapters review (Docs/adapters review #92223)2622a53942- docs: vt demo guide (docs: vt demo guide #92249)