We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9598fb8 commit b1dfa1aCopy full SHA for b1dfa1a
packages/nextjs-cache-handler/src/helpers/resolveRevalidateValue.ts
@@ -29,9 +29,9 @@ export function resolveRevalidateValue(
29
30
let revalidate;
31
32
- if (cachedFetchValue.kind === "FETCH") {
+ if (cachedFetchValue?.kind === "FETCH") {
33
revalidate = cachedFetchValue.revalidate;
34
- } else if (cachedPageValue.kind === "APP_PAGE") {
+ } else if (cachedPageValue?.kind === "APP_PAGE") {
35
revalidate = responseCacheCtx.cacheControl?.revalidate;
36
}
37
0 commit comments