Skip to main content
Version: 11.x

Type Alias: WithTRPCSSROptions<TRouter>

WithTRPCSSROptions<TRouter>: WithTRPCOptions<TRouter> & object

Type declaration

responseMeta()?

optional responseMeta: (opts) => ResponseMeta

Parameters

ParameterType
optsobject
opts.clientErrorsTRPCClientError<TRouter>[]
opts.ctxNextPageContext

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

Defined in

withTRPC.tsx:50