18 lines
478 B
JavaScript
18 lines
478 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
experimental: {
|
|
incrementalCacheHandlerPath:
|
|
process.env.NODE_ENV === 'production'
|
|
? require.resolve(
|
|
// './cache-handler-redis-custom.js' // custom configuration
|
|
'./cache-handler-redis.js'
|
|
)
|
|
: undefined,
|
|
},
|
|
env: {
|
|
NEXT_PUBLIC_REDIS_INSIGHT_URL:
|
|
process.env.REDIS_INSIGHT_URL ?? 'http://localhost:8001',
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|