Files
next.js/test/e2e/app-dir/app-root-params-getters/fixtures/use-cache-private/next.config.ts
Janka UrygaandGitHub 703830cb76 allow root params access in private caches (#82125)
Accessing root params in a private cache should work, but I missed it in
the `next/root-params` PR.
```tsx
import { lang } from 'next/root-params'

async function foo() {
  'use cache: private'
  await lang() // this is okay
}
```
With this PR, we'll now allow this (and `unstable_rootParams()`)
2025-07-30 17:36:46 +02:00

11 lines
167 B
TypeScript

import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
experimental: {
useCache: true,
rootParams: true,
},
}
export default nextConfig