This commit is contained in:
dohyeons
2025-10-02 17:22:25 +09:00
parent af75b91371
commit 0455b1ee43
2 changed files with 11 additions and 14 deletions

View File

@@ -44,10 +44,9 @@ const nextConfig = {
// 환경 변수 (런타임에 읽기)
env: {
// 프로덕션에서는 직접 백엔드 URL 사용, 개발환경에서는 프록시 사용
// 환경변수가 있으면 사용, 없으면 개발환경에서는 프록시 사용
NEXT_PUBLIC_API_URL:
process.env.NEXT_PUBLIC_API_URL ||
(process.env.NODE_ENV === "production" ? "http://39.117.244.52:8080/api" : "/api"),
process.env.NEXT_PUBLIC_API_URL || (process.env.NODE_ENV === "production" ? "http://localhost:8080/api" : "/api"),
},
};