mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
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()`)
11 lines
167 B
TypeScript
11 lines
167 B
TypeScript
import type { NextConfig } from 'next'
|
|
|
|
const nextConfig: NextConfig = {
|
|
experimental: {
|
|
useCache: true,
|
|
rootParams: true,
|
|
},
|
|
}
|
|
|
|
export default nextConfig
|