# ViteAppResource

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

## 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 a custom Vite configuration file
    ```typescript
  withViteConfig(configPath: string): ViteAppResource
  ```
