This is typically done in the handler for the API, createHTTPHandler for instance. Will be different depending on how you're hosting it, but the entry-point for your tRPC app
I agree that area could use some improvement, it is mentioned in only 1 line of code and it’s for createProxySSGHelpers which isn’t very obvious if that handler doesn’t apply to you