diff --git a/src/auth/api.ts b/src/auth/api.ts index fa81e90..b281a81 100644 --- a/src/auth/api.ts +++ b/src/auth/api.ts @@ -27,7 +27,7 @@ const BASE_URL = (import.meta.env.VITE_API_BASE_URL as string | undefined) ?? ""; -function joinUrl(path: string): string { +export function joinUrl(path: string): string { if (BASE_URL) return `${BASE_URL.replace(/\/$/, "")}${path}`; return path; } diff --git a/src/lib/api.ts b/src/lib/api.ts index 151e488..3bc94e6 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -47,6 +47,7 @@ import type { import { authedFetch, authedFetchResponse, + joinUrl, } from "@/auth/api"; const BASE_URL = (import.meta.env.VITE_API_BASE_URL as string | undefined) ?? "";