현재 작업 상태 저장

This commit is contained in:
Yun Chan 2026-06-27 11:20:24 +09:00
parent 07cc67761e
commit 6bd91b0d5e
674 changed files with 8726 additions and 298 deletions

View file

@ -7,10 +7,17 @@
===================================================================== */
// Vite 환경변수. 기본 "/api" (vite proxy 또는 nginx 가 백엔드로 라우팅).
const PUBLIC_API_ORIGIN_BY_HOST: Record<string, string> = {
"vignette.chanpaca.net": "https://api-vignette.chanpaca.net",
"vnet.18ka.net": "https://api-vnet.18ka.net",
};
function defaultApiBase(): string {
if (typeof window !== "undefined") {
const host = window.location.hostname;
if (host === "vignette.chanpaca.net" || host.endsWith(".pages.dev")) {
const mapped = PUBLIC_API_ORIGIN_BY_HOST[host];
if (mapped) return mapped;
if (host.endsWith(".pages.dev")) {
return "https://api-vignette.chanpaca.net";
}
}