default API base to studio.getzino.in for production builds
This commit is contained in:
parent
f75fb16056
commit
f906697105
@ -3,7 +3,7 @@ import { APP_ID } from "../config";
|
|||||||
const TOKEN_KEY = "zino_token";
|
const TOKEN_KEY = "zino_token";
|
||||||
|
|
||||||
function baseUrl(): string {
|
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> {
|
function headers(): Record<string, string> {
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export function useAuth() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const apiUrl = (
|
const apiUrl = (
|
||||||
import.meta.env.VITE_ZINO_API_URL || ""
|
import.meta.env.VITE_ZINO_API_URL || "https://studio.getzino.in"
|
||||||
).replace(/\/+$/, "");
|
).replace(/\/+$/, "");
|
||||||
|
|
||||||
const login = useCallback(
|
const login = useCallback(
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import { ThemeProvider } from './hooks/ThemeContext'
|
|||||||
import './index.css'
|
import './index.css'
|
||||||
import App from './App'
|
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(
|
createRoot(document.getElementById('root')!).render(
|
||||||
<StrictMode>
|
<StrictMode>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user