Skip to content
Docs Try Aspire
Docs Try

addNodeApp

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

Signature

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

Applies to

This method applies to the following types: