cnrad / lanyard-profile-readme

🏷️ Discord Presence in your GitHub Profile
https://lanyard.cnrad.dev
752 stars 101 forks source link

Changing settings so it works when redis is down. #33

Closed dustinrouillard closed 2 years ago

dustinrouillard commented 2 years ago

This PR sets Redis' connection timeout to 1000ms, and allows only 1 retry, this prevents the function from returning 504 because it takes too long constantly retrying redis.

Also sets the timeout to 1000ms on the axios request in your getServerSideProps, and returns 0 for the count on catch, which allows the index page to load,

This will increase the load time of the routes, but it will be normal when the redis server is actually accepting connections properly.

vercel[bot] commented 2 years ago

Someone is attempting to deploy a commit to a Personal Account owned by @cnrad on Vercel.

@cnrad first needs to authorize it.