update
This commit is contained in:
parent
e1ce554705
commit
13de7316ef
1 changed files with 3 additions and 1 deletions
|
|
@ -3,7 +3,9 @@ import createClient from "openapi-fetch";
|
|||
import { camelizeKeys, decamelizeKeys } from "humps";
|
||||
import type { paths } from "@/types/api";
|
||||
|
||||
const API_URL = import.meta.env.PROD ? "/api" : "http://localhost:8000/";
|
||||
const API_URL =
|
||||
import.meta.env.VITE_API_URL ||
|
||||
(import.meta.env.PROD ? "/api" : "http://localhost:8000/");
|
||||
|
||||
// Create the base client with full type safety
|
||||
export const client = createClient<paths>({
|
||||
|
|
|
|||
Loading…
Reference in a new issue