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(