aryzing
How to configure context for a standalone server?
Thanks, in the end I found it here,
https://trpc.io/docs/server/adapters/standalone#2-configure-the-standalone-server
The standalone config docs use the
createContext
function but don't define it, and the createContext docs define it but don't use it with createHTTPServer
, so had to put both doc pages together to figure out how to do it for the standalone server6 replies
What's the negative code returned in error responses?
The error handling docs are great, and would be better if they contained an explanation of (or link to) what
code
is.
Towards the end of the docs, there's a collapsed section at the end of this page explaining the codes, https://trpc.io/docs/rpc#error-codes---json-rpc-20-error-codes6 replies