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

# Interface: ViteBuildContext

Defined in: vite.ts:84

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 |
| `environment.config` | [`ViteResolvedConfig`](ViteResolvedConfig.md) | The environment's own resolved config; under `buildApp` each environment has its own. | vite.ts:90 |
| `environment.name` | `string` | The environment's name. | vite.ts:88 |
