cache-handler-redis
"Socket already opened"
### What? I copied the contents of `cache-handler.js` and tried it, and got an error `"Socket already opened"`. ref: https://github.com/caching-tools/next-shared-cache/issues/284 It should be fixed so that it doesn't matter if it is copied. ### Why? Because `Socket already opened`, so a condition is needed before `await client.connect()`. ### How? Add environment variable(`process.env.REDIS_AVAILABLE`) check. ref: https://caching-tools.github.io/next-shared-cache/configuration/opt-out-cache-on-build Co-authored-by: akfm.sato <[email protected]>
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`.