How to Achieve Full Type-Safe Communication Between a Hono Server and a Next.js Client in a Monorepo
I have a Hono server running on port 8787 and a Next.js client on port 3000.
Both are in a monorepo.
How can I achieve full type safety between them?
I also want the requests to be written in a very professional way,
for example:
await api.users.$get()
I’d appreciate code examples or explanations, thank you!
Both are in a monorepo.
How can I achieve full type safety between them?
I also want the requests to be written in a very professional way,
for example:
await api.users.$get()
I’d appreciate code examples or explanations, thank you!