next.js
a0c6a614 - instant: enable navigation validation by default (#94312)

Commit
2 days ago
instant: enable navigation validation by default (#94312) ### What? Flips the default `experimental.instantInsights.validationLevel` from `'manual-warning'` to `'warning'` so Cache Components apps get instant-navigation validation across all pages by default. ### Why? `'manual-warning'` only validates pages that explicitly export `unstable_instant`, so apps see nothing unless they opt in. `'warning'` is what users have been turning on manually to actually see the feature (`v0`, `vercel-site`). ### Test coverage - Unit: `instant-config-normalization.test.ts` pins the framework default at `'warning'`. - Integration: new `instant-validation-level-default/` fixture (no `instantInsights` in config) asserts implicit dev validation fires, and that build is unaffected. ### Collateral test fixtures Tests whose intent is unrelated to instant validation (router-autoscroll, owner-stack, hmr-iframe, next-image, server-source-maps, etc.) now hit new redboxes/console warnings because their fixtures incidentally use dynamic data. Each opts out with `experimental: { instantInsights: { validationLevel: 'manual-warning' } }` in `next.config`. ### Open question With no `'off'` / `'info'` tier today, silencing Insights after this change requires setting `validationLevel: 'manual-warning'`. Is that acceptable? Should we inform of this anywhere? <!-- NEXT_JS_LLM_PR -->
Author
Parents
Loading