export const client = hc<AppType>(getBaseUrl(), { async fetch(input, requestInit, _, __) { return $fetch(input instanceof URL ? input.toString() : input, { ...requestInit, ...(typeof window === "undefined" ? (await import("next/headers")).headers() : {}), }); },});