running vercel edge api functions?
Trying to use vercel edge functions for my trpc api routes. Having a hard time with this. Any advice?
5 Replies
pages or app
Pages router
in your api/trpc/[trpc].ts file
add
then as long as your code is not too large or uses node apis you should be set
Is there a way to pick only specific functions to run on edge?
https://discordapp.com/channels/966627436387266600/1130432793189564436/1130432793189564436
everything in your trpc router is a single endpoint, so if you want to split them up you need to add multiple root routers see this thread