next-shared-cache
next-shared-cache copied to clipboard
When I'm running well locally, deploying to "vercel" doesn't work, redis connection timeout
I am using yarn build yarn start locally and everything is running well
When I deploy to vercel, it doesn't work.
Redis does not work in cache handler. js, I initially thought it was a Redis issue, so I created an/app/test. ts; I tried to connect to Redis and retrieve the value from it, and was able to access and read the value from Redis normally. However, in the Vercel environment, it did not work in cache handler. js and reported an error: connection timeout. Please help me! @better-salmon
I use pages router
@a20000110 hello! This library was made for self-hosted environments with multiple instances of the app. I'm afraid, it doesn't work in Vercel's deployments
@a20000110 hello! This library was made for self-hosted environments with multiple instances of the app. I'm afraid, it doesn't work in Vercel's deployments
Thank you for your reply, but I can use the "App router" mode but it works fine. https://redis-puce.vercel.app/
I found that using app router would store data in redis at build time, which pages router couldn't do. Is that what this is about?
i have same problem, not sure why :/
@IRediTOTO hello! Can you please share your CacheHandler configuration?