addViteApp

Method
📦 Aspire.Hosting.JavaScript v17.0.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addViteApp(
name: string,
appDirectory: string,
runScriptName?: string): ViteAppResource;
}

Signature

methodaddViteAppbuilder
Adds a Vite app to the distributed application builder.
addViteApp(
name: string,
appDirectory: string,
runScriptName?: string): ViteAppResource
namestringThe name of the Vite app.
appDirectorystringThe path to the directory containing the Vite app.
runScriptNamestringoptional= devThe name of the script that runs the Vite app. Defaults to "dev".
ViteAppResource

Applies to

This method applies to the following types: