functiondjF
tRPC6mo ago
1 reply
functiondj

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
?
Was this page helpful?