default API base to studio.getzino.in for production builds

This commit is contained in:
Bhanu Prakash Sai Potteri 2026-06-04 16:47:57 +05:30
parent f75fb16056
commit f906697105
3 changed files with 3 additions and 3 deletions

View File

@ -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<string, string> {

View File

@ -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(

View File

@ -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(
<StrictMode>