upstash / redis-examples

Sample applications implemented with serverless Redis
integration-test-project.vercel.app
MIT License
127 stars 56 forks source link

Examples website is not available #39

Open Bakhtiyar-Garashov opened 2 years ago

Bakhtiyar-Garashov commented 2 years ago

Hello,

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

Best.

hofewo commented 1 year ago

this example is throwing errors as well

burak-upstash commented 1 year ago

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?

Danubius1st commented 1 year ago

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 😞