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

# Interface: ViteBuildContext

Defined in: [vite.ts:84](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/vite.ts#L84)

The sliver of Vite's plugin context the build step reads.

## Properties

| Property | Type | Description | Defined in |
| ------ | ------ | ------ | ------ |
|  `environment?` | { `config`: [`ViteResolvedConfig`](ViteResolvedConfig.md); `name`: `string`; } | The environment being built; the build step runs for `client` only. | [vite.ts:86](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/vite.ts#L86) |
| `environment.config` | [`ViteResolvedConfig`](ViteResolvedConfig.md) | The environment's own resolved config; under `buildApp` each environment has its own. | [vite.ts:90](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/vite.ts#L90) |
| `environment.name` | `string` | The environment's name. | [vite.ts:88](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/vite.ts#L88) |
