Hono's Client does not work in Nuxt SSR

I have attached the the image using the native $fetch API of Nuxt to make a call to /api/profile and this works perfectly. However, I want the type-safety of RPC and so instead, I use the client. In the second image, there is now an issue. When the frontend is rendering the HTML in the server, the request is blocked and I have no idea why. There are two log statements and this is the output in the terminal, i.e. the server. In the server, the client does not make the request when it should. But it works perfectly fine in the browser. Can someone please help me??
No description
No description
No description
No description
No description
1 Reply
NightFuries
NightFuriesOP2mo ago
I now decided to use a custom fetch method for this call (made it specific). But now res is no longer a ClientResponse object, it is a regular response object. That's not what I want right?? How do I do this?
No description

Did you find this page helpful?