After setting up Next.js typescript with Kubernetes NGINX Ingress, I encountered a problem where specific routes were returning a 502
error. For example, the route /test
works fine, but /login
does not. I'm unsure whether the issue lies with Kubernetes or Docker misconfiguration. I am unable to replicate the error and identify what is causing it.
https://i.stack.imgur.com/5g3mR.jpg https://i.stack.imgur.com/Pp3mQ.jpg https://i.stack.imgur.com/LzWJF.jpg
You can find the full configuration in this GitHub repository.