fix(web): services toggle + devFetch guard (GRO-404, GRO-406) #211

Merged
groombook-engineer[bot] merged 3 commits from fix/gro-404-services-toggle into main 2026-04-02 20:20:19 +00:00
Showing only changes of commit 321bd90249 - Show all commits
-4
View File
@@ -9,10 +9,6 @@ const originalFetch = window.fetch;
* Intentionally mutates window.fetch — this is dev-only (AUTH_DISABLED=true).
*/
export function installDevFetchInterceptor() {
// Only install if a dev user is selected (localStorage check, not build-time flag).
// This ensures the interceptor runs in deployed dev builds, not just `vite dev`.
if (!getDevUser()) return;
window.fetch = function (input: RequestInfo | URL, init?: RequestInit) {
const user = getDevUser();
if (!user) return originalFetch(input, init);