# ViteAppResource

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

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

## Definition

```go
type ViteAppResource interface {
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithContainerFiles
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithServiceDiscovery
    ResourceWithWaitSupport
}
```

## Embeds

- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithContainerFiles`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- [`ResourceWithServiceDiscovery`](/reference/api/go/aspire.hosting.javascript/resourcewithservicediscovery.md)
- `ResourceWithWaitSupport`

## Properties

- `ResourceTypeDisplayName`: `string` `get` -- Gets the ResourceTypeDisplayName property

## Methods

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