ViteAppResource

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

Properties

propertyresourceTypeDisplayNamestringget
Gets the ResourceTypeDisplayName property

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