ForkMeDaddy
ForkMeDaddy
Explore posts from servers
HHono
Created by ForkMeDaddy on 9/12/2024 in #help
Client Response
neat
7 replies
HHono
Created by ForkMeDaddy on 9/12/2024 in #help
Client Response
No description
7 replies
HHono
Created by ForkMeDaddy on 9/12/2024 in #help
Client Response
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()
: {}),
});
},
});
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()
: {}),
});
},
});
7 replies
HHono
Created by ForkMeDaddy on 9/12/2024 in #help
Client Response
I am using ofetch as my fetch fn. could this be related?
7 replies