I don’t like Vite and React static sites in general. Not rational, just personal feelings.
Now I understand it was just a lack of knowledge on my first encounter. Plus low DevOps culture in the company - the developer had no idea how infrastructure and k8s work. And couldn’t clearly explain why these sites need public backend addresses (VITE_API_BASE_URL) at build time.
At that point I should have asked “why is that” and taken the time to figure it out. I didn’t. Couldn’t be bothered. That led to hours of me trying to make it work with internal k8s DNS addresses - *.svc.cluster.local Those of you who know - you’re probably laughing right now. It only clicked for me last week, and the AI confirmed it with references.
It’s a client-side app. It runs in the browser on the end user’s machine. Of course it knows nothing about internal cluster addresses.
“DevOps is not a role, it’s a culture”
My brother @tony-miller-townsville always dropped this phrase whenever DevOps came up — and I repeat it at the right moments to impress people.