Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Examples website is not available #39

Open
Bakhtiyar-Garashov opened this issue Nov 14, 2022 · 3 comments
Open

Examples website is not available #39

Bakhtiyar-Garashov opened this issue Nov 14, 2022 · 3 comments

Comments

@Bakhtiyar-Garashov
Copy link

Hello,

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

Best.

@hofewo
Copy link

hofewo commented Jan 18, 2023

this example is throwing errors as well

@burak-upstash
Copy link
Collaborator

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
Copy link

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 😞

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants