chore: client 수정

This commit is contained in:
2026-05-12 14:48:42 +09:00
parent 39a0b4b5d1
commit 4928778b02
2 changed files with 6 additions and 5 deletions
+4
View File
@@ -1,6 +1,10 @@
import { PROXY_HOST, SITE_ID } from "@/shared/config";
import { Client } from "@common/network";
import { setCookie } from "../lib";
setCookie("site-id-key", SITE_ID);
const BASE_URL = `${PROXY_HOST}/server`;
export const client = Client.getInstance({
+2 -5
View File
@@ -1,17 +1,14 @@
import { Client } from "@common/network";
import { getConfig } from "@common/config";
import { getCookie } from "../lib";
const siteId = getCookie("site-id-key") ?? "";
const getClientInstance = () => {
const config = getConfig();
const { PROXY_HOST } = config;
const { PROXY_HOST, SITE_ID } = config;
const BASE_URL = `${PROXY_HOST}/server`;
return Client.getInstance({
baseURL: BASE_URL,
siteId,
siteId: SITE_ID ?? "",
});
};