This commit is contained in:
Jamitz 2026-01-06 14:08:13 +00:00
parent e1ce554705
commit 13de7316ef

View file

@ -3,7 +3,9 @@ import createClient from "openapi-fetch";
import { camelizeKeys, decamelizeKeys } from "humps"; import { camelizeKeys, decamelizeKeys } from "humps";
import type { paths } from "@/types/api"; 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 // Create the base client with full type safety
export const client = createClient<paths>({ export const client = createClient<paths>({