mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
## Summary - Adds `experimental.varyParams` feature flag (defaults to `false`) - When disabled, the client skips vary params rekeying and treats params as unknown - Allows internal rollout with easy revert if regressions occur during dogfooding The flag only gates the client-side rekeying logic in `cache.ts`. Server-side param tracking continues regardless. ## Test plan - Enabled the flag in the vary-params and optimistic-routing test fixtures
14 lines
233 B
JavaScript
14 lines
233 B
JavaScript
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
const nextConfig = {
|
|
cacheComponents: true,
|
|
experimental: {
|
|
optimisticRouting: true,
|
|
varyParams: true,
|
|
},
|
|
productionBrowserSourceMaps: true,
|
|
}
|
|
|
|
module.exports = nextConfig
|