From f9066971055fd3f2ee4463b44b1a04549ca0204e Mon Sep 17 00:00:00 2001 From: Bhanu Prakash Sai Potteri Date: Thu, 4 Jun 2026 16:47:57 +0530 Subject: [PATCH] default API base to studio.getzino.in for production builds --- src/api/viewService.ts | 2 +- src/hooks/useAuth.ts | 2 +- src/main.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/viewService.ts b/src/api/viewService.ts index 0dcf335..bc616de 100644 --- a/src/api/viewService.ts +++ b/src/api/viewService.ts @@ -3,7 +3,7 @@ import { APP_ID } from "../config"; const TOKEN_KEY = "zino_token"; function baseUrl(): string { - return (import.meta.env.VITE_ZINO_API_URL || "").replace(/\/+$/, ""); + return (import.meta.env.VITE_ZINO_API_URL || "https://studio.getzino.in").replace(/\/+$/, ""); } function headers(): Record { diff --git a/src/hooks/useAuth.ts b/src/hooks/useAuth.ts index 518d338..a962ba2 100644 --- a/src/hooks/useAuth.ts +++ b/src/hooks/useAuth.ts @@ -31,7 +31,7 @@ export function useAuth() { }); const apiUrl = ( - import.meta.env.VITE_ZINO_API_URL || "" + import.meta.env.VITE_ZINO_API_URL || "https://studio.getzino.in" ).replace(/\/+$/, ""); const login = useCallback( diff --git a/src/main.tsx b/src/main.tsx index fff2960..a58ce69 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -7,7 +7,7 @@ import { ThemeProvider } from './hooks/ThemeContext' import './index.css' import App from './App' -const apiUrl = import.meta.env.VITE_ZINO_API_URL || '' +const apiUrl = import.meta.env.VITE_ZINO_API_URL || 'https://studio.getzino.in' createRoot(document.getElementById('root')!).render(