Files
Andrew ClarkandGitHub 160a7bfc3a Enable experimental.optimisticRouting by default (#94011)
Turns on `experimental.optimisticRouting` by default. Second of the
Sparkle stack.

A few tests pin `optimisticRouting: false` because their assertions
observe the pre-flip navigation timing — search-params, a11y route
announcer, and hash scroll. To be updated separately.

<!-- NEXT_JS_LLM_PR -->
2026-05-21 17:00:19 -04:00

22 lines
584 B
JavaScript

/** @type {import('next').NextConfig} */
module.exports = {
redirects: () => {
return [
{
source: '/redirect/a',
destination: '/redirect-dest',
permanent: false,
},
]
},
// scroll position can be finicky with the
// indicators showing so hide by default
devIndicators: false,
experimental: {
// TODO: The hash-scroll test asserts on the pre-`optimisticRouting`
// navigation timing. Pin the fixture to the old default until the test
// is updated (or until the flag is removed).
optimisticRouting: false,
},
}