Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ViteAppResource

Handle
📦 Aspire.Hosting.JavaScript v17.0.0

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

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

Properties

propertyResourceTypeDisplayNamestringget
Gets the ResourceTypeDisplayName property
ResourceTypeDisplayName() (string, error)

Methods

methodWithViteConfigbuilder
Configures the Vite app to use the specified Vite configuration file instead of the default resolution behavior.
WithViteConfig(configPath string) ViteAppResource
configPathstringThe path to the Vite configuration file. Relative to the Vite service project root.
ViteAppResource

The resource builder.

Returns a handle; failures surface later via Err().