Skip to content

Commit

Permalink
chore: mark config.experimental.incrementalCacheHandlerPath as TS ign…
Browse files Browse the repository at this point in the history
…ored, because it no longer exist in newest major, but we still have to set it for older next versions
  • Loading branch information
pieh committed Jun 14, 2024
1 parent 64def62 commit 073a98e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/run/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export const setRunConfig = (config: NextConfigComplete) => {
// set the path to the cache handler
config.experimental = {
...config.experimental,
// @ts-expect-error incrementalCacheHandlerPath was removed from config type
// but we still need to set it for older Next.js versions
incrementalCacheHandlerPath: cacheHandler,
}

Expand Down

0 comments on commit 073a98e

Please sign in to comment.