mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
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 -->
22 lines
584 B
JavaScript
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,
|
|
},
|
|
}
|