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.
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.