Currently, I am using Hono as my API endpoint with Bun. Now, I am working on a new app with Next.js and I want to ensure type safety when fetching data from my API. I believe I can accomplish this through RPC. However, I am unable to locate AppType mentioned in the documentation within my Next.js app. The setup includes two subdomains, api.example.com and portal.example.com. How can I effectively manage this situation and implement type-safe data fetching from my Hono API endpoint in my Next.js app? Any help or code examples would be appreciated.
Original Source: