Skip to content
DocsTry Aspire
DocsTry

addNodeApp

Method
📦 Aspire.Hosting.JavaScript v13.4.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addNodeApp(
name: string,
appDirectory: string,
scriptPath: string): NodeAppResource;
}

Signature

methodaddNodeAppbuilder
Adds a node application to the application model. Node should be available on the PATH.
addNodeApp(
name: string,
appDirectory: string,
scriptPath: string): NodeAppResource
namestring
appDirectorystring
scriptPathstring
NodeAppResource

Applies to

This method applies to the following types: