addNxApp

Method
📦 CommunityToolkit.Aspire.Hosting.JavaScript.Extensions v13.6.1
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addNxApp(
name: string,
workingDirectory?: string): NxResource;
}

Signature

methodaddNxAppbuilder
Adds an Nx monorepo workspace to the distributed application builder.
addNxApp(
name: string,
workingDirectory?: string): NxResource
namestringThe name of the Nx workspace resource.
workingDirectorystringoptionalThe working directory of the Nx workspace. If not specified, it will be set to a path that is a sibling of the AppHost directory using the `name` as the folder.
NxResource

Applies to

This method applies to the following types: