Skip to content
DocsTry Aspire
DocsTry

withMappedEndpointPort

Method
📦 CommunityToolkit.Aspire.Hosting.JavaScript.Extensions v13.4.0
interface NxAppResource {
// ... omitted for brevity
withMappedEndpointPort(endpointName?: string): JavaScriptAppResource;
}

Signature

methodwithMappedEndpointPortbuilder
Maps the endpoint port for the JavaScript app resource to the appropriate command line argument
withMappedEndpointPort(endpointName?: string): JavaScriptAppResource
endpointNamestringoptional
JavaScriptAppResource

Applies to

This method applies to the following types: