# ViteAppResource

- Module: [Aspire.Hosting.JavaScript](/reference/api/typescript/aspire.hosting.javascript.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

Represents a Vite application resource that can be managed and executed within a Node.js environment.

## Definition

```typescript
interface ViteAppResource
  extends IComputeResource,
    IResource,
    IResourceWithArgs,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport,
    IResourceWithContainerFiles,
    IResourceWithServiceDiscovery {
  withViteConfig(configPath: string): ViteAppResource;
}
```

## Methods

- [withViteConfig](/reference/api/typescript/aspire.hosting.javascript/viteappresource/withviteconfig.md) -- `method` -- Configures the Vite app to use the specified Vite configuration file instead of the default resolution behavior.
    ```typescript
  withViteConfig(configPath: string): ViteAppResource
  ```
