diff options
Diffstat (limited to 'frontend/app/api/client.ts')
| -rw-r--r-- | frontend/app/api/client.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/app/api/client.ts b/frontend/app/api/client.ts index c26f1c6..86f2506 100644 --- a/frontend/app/api/client.ts +++ b/frontend/app/api/client.ts @@ -3,8 +3,9 @@ import { createContext } from "react"; import { API_BASE_PATH } from "../config"; import type { paths } from "./schema"; -const apiOrigin = import.meta.env.VITE_API_BASE_URL - ?? (import.meta.env.DEV ? "http://localhost:8004" : ""); +const apiOrigin = + import.meta.env.VITE_API_BASE_URL ?? + (import.meta.env.DEV ? "http://localhost:8004" : ""); const client = createClient<paths>({ baseUrl: `${apiOrigin}${API_BASE_PATH}`, |
