From 6b6ae7e9f4f95ddccc6d9315cdd854366c38fabd Mon Sep 17 00:00:00 2001 From: hyeonsu Date: Thu, 18 Sep 2025 19:23:07 +0900 Subject: [PATCH] Fix frontend client-side error - update API URL config and disable table-list temporarily --- frontend/lib/registry/components/index.ts | 2 +- frontend/next.config.mjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/lib/registry/components/index.ts b/frontend/lib/registry/components/index.ts index 80f690f3..cabedef9 100644 --- a/frontend/lib/registry/components/index.ts +++ b/frontend/lib/registry/components/index.ts @@ -35,7 +35,7 @@ import "./toggle-switch/ToggleSwitchRenderer"; import "./image-display/ImageDisplayRenderer"; import "./divider-line/DividerLineRenderer"; import "./accordion-basic/AccordionBasicRenderer"; -import "./table-list/TableListRenderer"; +// import "./table-list/TableListRenderer"; // 임시 비활성화 import "./card-display/CardDisplayRenderer"; /** diff --git a/frontend/next.config.mjs b/frontend/next.config.mjs index 3b517a6b..75ed37b3 100644 --- a/frontend/next.config.mjs +++ b/frontend/next.config.mjs @@ -36,8 +36,8 @@ const nextConfig = { // 환경 변수 (런타임에 읽기) env: { - // 개발 환경에서는 Next.js rewrites를 통해 /api로 프록시 - NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || "/api", + // 프로덕션에서는 직접 백엔드 URL 사용, 개발환경에서는 프록시 사용 + NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || (process.env.NODE_ENV === "production" ? "http://39.117.244.52:8080/api" : "/api"), }, };