Vite Build-Time vs Runtime Config: Moving Demo Credentials Out of the Frontend Image
CaRMen, my CRM, runs as two instances from the same code: the real one, served at the root of its domain, and a public demo under /demo/ on another site. The demo's login page shows its shared login and has a button to fill it in, so visitors can try it with one click. The first version of that put the demo credentials into the frontend build.