Skip to content
DocsTry Aspire
DocsTry

addJavaScriptApp

Method
📦 Aspire.Hosting.JavaScript v13.4.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addJavaScriptApp(
name: string,
appDirectory: string,
runScriptName?: string): JavaScriptAppResource;
}

Signature

methodaddJavaScriptAppbuilder
Adds a JavaScript application resource to the distributed application using the specified app directory and run script.
addJavaScriptApp(
name: string,
appDirectory: string,
runScriptName?: string): JavaScriptAppResource
namestring
appDirectorystring
runScriptNamestringoptional= dev
JavaScriptAppResource

Applies to

This method applies to the following types: