# Type Alias: ~~WithTRPCSSROptions<TRouter>~~

> 

> **WithTRPCSSROptions**\<`TRouter`\>: `WithTRPCOptions`\<`TRouter`\> & `object`

Defined in: [withTRPC.tsx:81](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/next/src/withTRPC.tsx#L81)

Options for `createTRPCNext` and `withTRPC` with SSR on.

## Type declaration

### ~~responseMeta()?~~

> `optional` **responseMeta**: (`opts`) => `ResponseMeta`

Sets the status code and headers of the SSR response.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `opts` | \{ `clientErrors`: `TRPCClientError`\<`TRouter`\>[]; `ctx`: `NextPageContext`; \} |
| `opts.clientErrors` | `TRPCClientError`\<`TRouter`\>[] |
| `opts.ctx` | `NextPageContext` |

#### Returns

`ResponseMeta`

#### Deprecated

part of `ssr: true`. Set the status and headers in
`getServerSideProps` instead.

#### See

https://trpc.io/docs/client/nextjs/pages-router/ssr#set-the-status-and-cache-headers

### ~~ssr~~

> **ssr**: `true` \| (`opts`) => `boolean` \| `Promise`\<`boolean`\>

If you enable this, you also need to add a `ssrPrepass`-prop

#### Deprecated

built on `@trpc/react-query`. Prefetch each page's queries
in `getServerSideProps` with `@trpc/tanstack-react-query` instead.

#### See

https://trpc.io/docs/client/nextjs/pages-router/ssr

### ~~ssrPrepass~~

> **ssrPrepass**: [`TRPCPrepassHelper`](https://trpc.io/docs/typedoc/next/type-aliases/TRPCPrepassHelper.md)

use `import { ssrPrepass } from '@trpc/next/ssrPrepass'`

#### Deprecated

part of `ssr: true`, which is built on `@trpc/react-query`.

#### See

https://trpc.io/docs/client/nextjs/pages-router/ssr

## Type Parameters

| Type Parameter |
| ------ |
| `TRouter` *extends* `AnyRouter` |

## Deprecated

part of `createTRPCNext`, which is built on `@trpc/react-query`.

## See

https://trpc.io/docs/client/nextjs/pages-router/setup#moving-from-createtrpcnext
