/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/development/app-dir/use-cache-custom-handler-dev/next.config.js
18 строк
488 B
Hendrik Liebau
Gate the dev Cold cache badge behind an experimental flag (#95169)
25 июн 2026, 20:53
Не верифицирован
25 июн 2026, 20:53
9da1544
Код
Авторство
О чём код?
/** * @type {import('next').NextConfig} */ const nextConfig = { cacheComponents: true, experimental: { coldCacheBadge: true, }, // Route the default `"use cache"` kind through a custom handler that // simulates a remote cache (its `get` has macro-task latency). In dev this is // fronted by a built-in in-memory handler so warm reads still resolve in a // microtask. cacheHandlers: { default: require.resolve('./handler.js'), }, } module.exports = nextConfig