next.js
next.js copied to clipboard
Refactor cache handler to use ES modules and move Redis client initialization inside callback
This pull request refactors the cache handler to use ES modules instead of CommonJS modules. It also moves the Redis client initialization inside the callback function to fix Socket already opened
error on some systems.
Allow CI Workflow Run
- [ ] approve CI run for commit: 426718dc29462ddfe6bb9cd73aef9b8264b55471
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer