Skip to content

Commit

Permalink
docs: fix the incrementalCacheHandlerPath (#52124)
Browse files Browse the repository at this point in the history
The `incrementalCacheHandlerPath` have to be under `experimental`.
And the path should use `path` library so that the custom cache handler can be used.
  • Loading branch information
jyunhanlin committed Jul 10, 2023
1 parent af1948b commit 2ef8938
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ In Next.js, the [default cache handler](/docs/app/building-your-application/data

```js filename="next.config.js"
module.exports = {
incrementalCacheHandlerPath: './cache-handler.js',
experimental: {
incrementalCacheHandlerPath: require.resolve('./cache-handler.js'),
},
}
```

Expand Down

0 comments on commit 2ef8938

Please sign in to comment.