---
url: >-
  https://lit-ui-router.dev/api/ui-router-server/vite/interfaces/ViteResolvedConfig.md
---
[ui-router-server](../../index.md) / [vite](../index.md) / ViteResolvedConfig

# Interface: ViteResolvedConfig

Defined in: [vite.ts:47](https://github.com/simshanith/lit-ui-router/blob/c279fb344182d55c0812ae63e7495280ba5028cf/packages/ui-router-server/src/vite.ts#L47)

The sliver of Vite's resolved config the plugin reads.

## Properties

| Property | Type | Description | Defined in |
| ------ | ------ | ------ | ------ |
|  `build` | { `outDir`: `string`; `ssr`: `string` | `boolean`; } | Build options: where the client build writes, and whether it is an SSR build. | [vite.ts:55](https://github.com/simshanith/lit-ui-router/blob/c279fb344182d55c0812ae63e7495280ba5028cf/packages/ui-router-server/src/vite.ts#L55) |
| `build.outDir` | `string` | The client build's output directory, as configured. | [vite.ts:57](https://github.com/simshanith/lit-ui-router/blob/c279fb344182d55c0812ae63e7495280ba5028cf/packages/ui-router-server/src/vite.ts#L57) |
| `build.ssr` | `string` | `boolean` | Truthy for `vite build --ssr`, which the build step skips. | [vite.ts:59](https://github.com/simshanith/lit-ui-router/blob/c279fb344182d55c0812ae63e7495280ba5028cf/packages/ui-router-server/src/vite.ts#L59) |
|  `command` | `"build"` | `"serve"` | `'build'` for `vite build`; the build step runs only then. | [vite.ts:51](https://github.com/simshanith/lit-ui-router/blob/c279fb344182d55c0812ae63e7495280ba5028cf/packages/ui-router-server/src/vite.ts#L51) |
|  `logger` | { `info`(`message`): `void`; } | Vite's logger; the build step reports what it wrote. | [vite.ts:62](https://github.com/simshanith/lit-ui-router/blob/c279fb344182d55c0812ae63e7495280ba5028cf/packages/ui-router-server/src/vite.ts#L62) |
| `logger.info` | (`message`) => `void` | Logs one line at info level. | [vite.ts:64](https://github.com/simshanith/lit-ui-router/blob/c279fb344182d55c0812ae63e7495280ba5028cf/packages/ui-router-server/src/vite.ts#L64) |
|  `mode` | `string` | The mode, passed on to the module runner that loads the prerender entry. | [vite.ts:53](https://github.com/simshanith/lit-ui-router/blob/c279fb344182d55c0812ae63e7495280ba5028cf/packages/ui-router-server/src/vite.ts#L53) |
|  `root` | `string` | The project root; the prerender entry and `build.outDir` resolve against it. | [vite.ts:49](https://github.com/simshanith/lit-ui-router/blob/c279fb344182d55c0812ae63e7495280ba5028cf/packages/ui-router-server/src/vite.ts#L49) |
