Files
Andrew ClarkandGitHub e3e6f3586e Add experimental.varyParams feature flag (#89307)
## 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
2026-01-30 19:05:02 +00:00

14 lines
233 B
JavaScript

/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
cacheComponents: true,
experimental: {
optimisticRouting: true,
varyParams: true,
},
productionBrowserSourceMaps: true,
}
module.exports = nextConfig