withMappedEndpointPort

Method
📦 CommunityToolkit.Aspire.Hosting.JavaScript.Extensions v13.6.1
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
endpointNamestringoptionalThe name of the endpoint to map. If not specified, it will use the first HTTP or HTTPS endpoint found.
JavaScriptAppResource

Applies to

This method applies to the following types: