Files
Niklas MischkulnigandGitHub 07f76411b0 Include deployment id in cacheHandlers keys (#93453)
How was this ever working for dev? In that case, `buildId =
"development"` and so it always uses the same cache key
2026-05-04 18:26:07 +02:00

17 lines
313 B
JavaScript

/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
cacheComponents: true,
cacheHandlers: {
default: require.resolve('./handler.js'),
},
generateBuildId: process.env.BUILD_ID
? async () => {
return process.env.BUILD_ID
}
: undefined,
}
module.exports = nextConfig