[common/features] feat: 환경 변수 URL 방식 도입

This commit is contained in:
2025-08-08 17:22:58 +09:00
parent 2b3475a626
commit e4d52611d7
8 changed files with 202 additions and 6 deletions
@@ -1,6 +1,10 @@
import { PROXY_HOST } from "./env";
"use client";
export const BASE_URL = `${PROXY_HOST}/server`;
import { getCookie, getEnv } from "../lib";
const SITE_ID = getCookie("site-id-key") ?? "";
const PROXY_HOST_KEY = `NEXT_PUBLIC_PROXY_HOST_${SITE_ID}`;
export const BASE_URL = `${getEnv(PROXY_HOST_KEY)}/server`;
export const ENDPOINT = {
ATTACH_SERVICE: {