fix: API_BASE_URL fallback을 same-origin으로 변경
|| 대신 ?? 사용하여 빈 문자열(same-origin)도 유효한 값으로 처리 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user