redis-examples icon indicating copy to clipboard operation
redis-examples copied to clipboard

Examples website is not available

Open Bakhtiyar-Garashov opened this issue 2 years ago • 3 comments

Hello,

I wanted to have a look at examples on redis. However it seems the live version on Vercel is currently removed.

Best.

Bakhtiyar-Garashov avatar Nov 14 '22 21:11 Bakhtiyar-Garashov

this example is throwing errors as well

hofewo avatar Jan 18 '23 16:01 hofewo

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?

burak-upstash avatar Jan 25 '23 12:01 burak-upstash

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 😞

Danubius1st avatar Feb 13 '23 20:02 Danubius1st