261021_01_ENH: 1차 마이그레이션 완료
This commit is contained in:
@@ -2,6 +2,11 @@ import { createHttpClient } from "@kri/common/http";
|
||||
import { clientEnv } from "@/lib/env.client";
|
||||
|
||||
const resolveBaseUrl = () =>
|
||||
typeof window === "undefined" ? clientEnv.API_BASE : new URL(clientEnv.API_BASE, window.location.origin).toString();
|
||||
typeof window === "undefined"
|
||||
? clientEnv.API_BASE
|
||||
: new URL(clientEnv.API_BASE, window.location.origin).toString();
|
||||
|
||||
export const nextApi = createHttpClient(resolveBaseUrl());
|
||||
export const nextApi = createHttpClient(resolveBaseUrl(), {
|
||||
onForbidden: false,
|
||||
onResponseError: false,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user