Type Alias: WithTRPCSSROptions<TRouter>
WithTRPCSSROptions<
TRouter
>:WithTRPCOptions
<TRouter
> &object
Type declaration
responseMeta()?
optional
responseMeta: (opts
) =>ResponseMeta
Parameters
Parameter | Type |
---|---|
opts | object |
opts.clientErrors | TRPCClientError <TRouter >[] |
opts.ctx | NextPageContext |
Returns
ResponseMeta
ssr
ssr:
true
| (opts
) =>boolean
|Promise
<boolean
>
If you enable this, you also need to add a ssrPrepass
-prop
See
https://trpc.io/docs/client/nextjs/ssr
ssrPrepass
ssrPrepass:
TRPCPrepassHelper
use import { ssrPrepass } from '@trpc/next/ssrPrepass'
See
https://trpc.io/docs/client/nextjs/ssr
Type Parameters
Type Parameter |
---|
TRouter extends AnyRouter |