From 073a98ed030093cb5dcf298eebe128f79712e595 Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Thu, 13 Jun 2024 13:24:10 +0200 Subject: [PATCH] chore: mark config.experimental.incrementalCacheHandlerPath as TS ignored, because it no longer exist in newest major, but we still have to set it for older next versions --- src/run/config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/run/config.ts b/src/run/config.ts index 514041d409..bd3a4e2b06 100644 --- a/src/run/config.ts +++ b/src/run/config.ts @@ -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, }