MugetsuM
tRPC4mo ago
3 replies
Mugetsu

How to compress procedure response

I have one trpc procedure which has 40 mb response. I would like to compress this. How can I compress one procedure call in trpc. Or even better have compression for all trpc procedures above some threshold. Is it possible or I have to create separate api endpoint out of trpc context.
I’m using nextjs with custom express server.
Was this page helpful?