function
function5h ago

Shorten /app/api/trpc/[trpc]/route.ts

The docs suggest /app/api/trpc/[trpc]/route.ts to register the tRPC handler in a Next.js project. Can I shorten this to e.g. /app/api/route.ts? If yes, what's the endpoint that I need to pass to fetchRequestHandler and what's the url I need to pass to httpBatchLink?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?