mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
How was this ever working for dev? In that case, `buildId = "development"` and so it always uses the same cache key
17 lines
313 B
JavaScript
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
|