2023-11-09 15:29:11 +01:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
const nextConfig = {
|
|
|
|
experimental: {
|
|
|
|
incrementalCacheHandlerPath:
|
|
|
|
process.env.NODE_ENV === 'production'
|
|
|
|
? require.resolve(
|
2023-11-17 04:36:55 +01:00
|
|
|
// './cache-handler-redis-custom.js' // custom configuration
|
|
|
|
'./cache-handler-redis.js'
|
2023-11-09 15:29:11 +01:00
|
|
|
)
|
|
|
|
: undefined,
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
NEXT_PUBLIC_REDIS_INSIGHT_URL:
|
|
|
|
process.env.REDIS_INSIGHT_URL ?? 'http://localhost:8001',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = nextConfig
|