How to serve React bundle.js with Traefik Ingress Controller?

12/10/2021

I have a Golang/React app deployed on Kubernetes. One of the prefix paths my app uses is /staging. However, every time I try to access my app at hostname.com/staging I get an error 404 in the dev console saying it could not load bundle.js. Is there a configuration I need to take care of in React or is it something in my Golang server? Do I need to use React Router?

-- atlee19
go
kubernetes
reactjs
traefik
traefik-ingress

0 Answers