how to build nextjs docker image that depends on querying service on kubernetes cluster
Unanswered
Champagne D’Argent posted this in #help-forum
Champagne D’ArgentOP
hello. I'm having trouble building a docker image of a nextjs app since it throws an exception due to it making a fetch request to a service that doesn't exist yet, since it is in the same kubernetes cluster that the nextjs app pod belongs to. Would the recommended way of handling this to just swallow the error which is thrown in the fetch request, such that it just builds just fine?