docs: fix the incrementalCacheHandlerPath (#52124)
The `incrementalCacheHandlerPath` have to be under `experimental`. And the path should use `path` library so that the custom cache handler can be used.
This commit is contained in:
parent
af1948bde1
commit
2ef8938ff0
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,9 @@ In Next.js, the [default cache handler](/docs/app/building-your-application/data
|
||||||
|
|
||||||
```js filename="next.config.js"
|
```js filename="next.config.js"
|
||||||
module.exports = {
|
module.exports = {
|
||||||
incrementalCacheHandlerPath: './cache-handler.js',
|
experimental: {
|
||||||
|
incrementalCacheHandlerPath: require.resolve('./cache-handler.js'),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue