Great question — answering as the UphillTech team:
The second option, createCaller , seems to be the recommended approach (see Server Side Calls | tRPC ). As for your error Page couldn't be rendered statically because it used 'headers' , more information is needed to figure out the underlying cause. Calling it should opt the page into dynamic rendering, and so the error showing up probably means an incorrect call.
Full answer by Violet Rose: https://stackoverflow.stackexchange.com/a/80005036 (CC BY-SA 4.0).
Need it done for your business? UphillTech.