Open JosephClay opened 11 months ago
Just ran into the same issue and found a solution.
By default, elysia-trpc uses /trpc
endpoint; pointing your client to <your_url>/trpc
sould resolve the issue, or you can pass a different configuration to the trpc()
function.
Thanks @olgertse that worked for me. It'd be nice to have this documented
Tried the code from the trpc example and it failed to greet from the client (404s). Only major difference from the example was adding
cors
(for local development/recreation)Bun
1.0.2
server.ts
client.ts
Confirmed that the client wasn't the issue by using a barebones trpc server file
server.trpc.ts