brumbrum_brum
Explore posts from serversFastify + TRPC on Vercel
I am having trouble hosting a Fastify + TRPC server on Vercel.
I have tried two different vercel.json setups, but they both do not work for each reasons:
^^^This just shows the built code in the browser, no matter what route I go to.
^^This just shows a 404 page from Vercel.
This is my index.ts file (Built to index.js):
2 replies
Procedures with paramters.
Is it possible to pass parameters to a procedure in TRPC? I want a procedure that first checks if the user is signed in by default. But then I also want to be able to pass an array of permissions for the user to have, when the actual procedure is used in a route.
9 replies