fix: API_BASE_URL fallback을 same-origin으로 변경

|| 대신 ?? 사용하여 빈 문자열(same-origin)도 유효한 값으로 처리

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jungwoo choi
2026-02-13 14:22:36 +09:00
parent 88ff592815
commit cdb6405714

View File

@ -9,7 +9,7 @@ import type {
} from "@/types/inspection";
const API_BASE_URL =
process.env.NEXT_PUBLIC_API_URL || "http://localhost:8011";
process.env.NEXT_PUBLIC_API_URL ?? "";
/** API 에러 클래스 */
export class ApiError extends Error {