Skip to content

Commit bc081c4

Browse files
authored
Fix cache revalidation for computed revisions (#3134)
1 parent e4275b2 commit bc081c4

File tree

3 files changed

+251
-5
lines changed

3 files changed

+251
-5
lines changed

packages/gitbook-v2/next.config.mjs

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ const nextConfig = {
77
experimental: {
88
// This is needed to throw "forbidden" when the api token expired during revalidation
99
authInterrupts: true,
10-
11-
// We don't use 'use cache' as it's not supported in OpenNext yet
12-
// and instead we scope `unstable_cache` to the parameters of the function
13-
useCache: false,
10+
useCache: true,
1411

1512
// Content is fully static, we can cache it in the session memory cache for a long time
1613
staleTimes: {

0 commit comments

Comments
 (0)