not edit my computer
This commit is contained in:
@@ -19,8 +19,7 @@ import type {
|
|||||||
RuntimeAuthInfoResponse,
|
RuntimeAuthInfoResponse,
|
||||||
} from "../types";
|
} from "../types";
|
||||||
|
|
||||||
const API_BASE_URL =
|
const API_BASE_URL = import.meta.env.VITE_FRONT_API_BASE_URL?.trim() || "/";
|
||||||
import.meta.env.VITE_FRONT_API_BASE_URL?.trim() || "http://127.0.0.1:8500";
|
|
||||||
|
|
||||||
export function joinApiUrl(baseUrl: string, path: string): string {
|
export function joinApiUrl(baseUrl: string, path: string): string {
|
||||||
const normalizedPath = path.startsWith("/") ? path : `/${path}`;
|
const normalizedPath = path.startsWith("/") ? path : `/${path}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user