File tree Expand file tree Collapse file tree 1 file changed +4
-18
lines changed
Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -24,24 +24,10 @@ pnpm install @trieb.work/nextjs-turbo-redis-cache
2424extend ` next.config.js ` with:
2525```
2626const nextConfig = {
27- cacheHandler:
28- process.env.NODE_ENV === "production" || process.env.DEV_REDIS_CACHE
29- ? new CachedHandler({
30- // Default Options:
31- // maxMemoryCacheSize, // deprecated
32- // database = process.env.VERCEL_ENV === 'production' ? 0 : 1,
33- // keyPrefix = process.env.VERCEL_URL || 'UNDEFINED_URL_',
34- // sharedTagsKey = '__sharedTags__',
35- // timeoutMs = 5000,
36- // revalidateTagQuerySize = 250,
37- // avgResyncIntervalMs = 60 * 60 * 1000,
38- // redisGetDeduplication = true,
39- // inMemoryCachingTime = 10_000,
40- // defaultStaleAge = 60 * 60 * 24 * 14,
41- // estimateExpireAge = (staleAge) =>
42- // process.env.VERCEL_ENV === 'preview' ? staleAge * 1.2 : staleAge * 2,
43- })
44- : undefined,
27+ ...
28+ cacheHandler: require.resolve("@trieb.work/nextjs-turbo-redis-cache")
29+ ...
30+ }
4531```
4632
4733## Consistency
You can’t perform that action at this time.
0 commit comments