Files
Sebastian "Sebbie" Silbermann ce207309be [test] Add coverage for throwing custom "use cache" cache handler (#95984)
This is relevant if the cache is in a broken state or the keys or
entries are not suitable (e.g. an entry that's to large to be stored).

Revealed several oddities:
1. cache handler have no no sources content (not too bad since that
means the codeframe points into the problem `use cache` function which
is usually the cause)
2. A throwing `set` is swallowed in dev
3. A throwing `get` is logged as a caught error and an unhandled
rejection. This is spammy.
2026-07-21 10:23:54 +02:00

12 lines
207 B
JavaScript

/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
cacheComponents: true,
cacheHandlers: {
default: require.resolve('./throwing-cache-handler.js'),
},
}
module.exports = nextConfig