260312_01_ENH: Error 페이지 및 Redirect 페이지 구현

This commit is contained in:
2026-03-12 09:36:09 +09:00
parent bedcfbc9d1
commit f7ce249aa7
17 changed files with 710 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
import { clientEnv } from "@/lib/env.client";
import {DEFAULT_API_TIMEOUT_MS} from "@/const/commonConst";
export type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
@@ -105,7 +106,7 @@ const isJsonContentType = (ctype: string) => {
export const createHttpClient = (baseURL: string, opts: HttpClientOptions = {}) => {
const {
getToken,
defaultTimeoutMs = 60_000,
defaultTimeoutMs = DEFAULT_API_TIMEOUT_MS,
defaultHeaders = { "content-type": "application/json" },
setErrorMessage,
} = opts;