3b46f22bb1
This pull request updates the `cache-handler-redis` example with a stabilized API. The updated `next.config.js` now uses the stable `cacheHandler` option instead of the `experimental.incrementalCacheHandlerPath`.
13 lines
331 B
JavaScript
13 lines
331 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
cacheHandler:
|
|
process.env.NODE_ENV === "production"
|
|
? require.resolve("./cache-handler.js")
|
|
: undefined,
|
|
env: {
|
|
NEXT_PUBLIC_REDIS_INSIGHT_URL:
|
|
process.env.REDIS_INSIGHT_URL ?? "http://localhost:8001",
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|