mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What? Fix cache-handler-redis example with working cache handler ### Why? It was not working because next-shared-cache was updated but some code inside the cache-handler.js was deprecated after version 1.0.0. When starting the app without Redis the cache handler was not switching to the LRU handler. ### How? - Updated cache-handler-redis example with working cache handler from [next-shared-cache's example](https://caching-tools.github.io/next-shared-cache/redis) - Add check for PHASE_PRODUCTION_BUILD to avoid [issues while building ](https://github.com/caching-tools/next-shared-cache/issues/284#issuecomment-1919145094) - Add throw error for Redis error to switch to the LRU handler - Updated dependencies - Updated readme broken links - Remove "version" from docker-compose's file because it's outdated [version outdated](https://github.com/docker/compose/issues/11628) Closes NEXT-66812 Fixes #66812 Co-authored-by: Delba de Oliveira <[email protected]>