Skip to content
DocsTry Aspire
DocsTry

ViteAppResource

Handle
📦 Aspire.Hosting.JavaScript v13.4.0
interface ViteAppResource
extends IComputeResource,
IResource,
IResourceWithArgs,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IResourceWithContainerFiles,
IResourceWithServiceDiscovery {
withViteConfig(configPath: string): ViteAppResource;
}

Methods

methodwithViteConfigbuilder
Configures the Vite app to use the specified Vite configuration file instead of the default resolution behavior.
withViteConfig(configPath: string): ViteAppResource
configPathstring
ViteAppResource