Open Bakhtiyar-Garashov opened 2 years ago
this example is throwing errors as well
hello, @Bakhtiyar-Garashov, we are having a look, sorry for the late response. Thank you for bringing this to our attention. @hofewo is there a specific example that doesn't work for you?
If it helps with anything, it's not a problem with redis, but nextjs. getServerSideProps() is called multiple times. Verify this:
export async function getServerSideProps() { const data = await redis.incr('counter');
console.log(`getServerSideProps.data: ${data}, ${new Date().toISOString()}`); return { props: { hits: data, }, }; }
So the result isn't reliable 😞
Hello,
I wanted to have a look at examples on redis. However it seems the live version on Vercel is currently removed.
Best.