Skip to content
DocsTry Aspire
DocsTry

JavaScriptAppResource.publishAsNodeServer

Method
📦 Aspire.Hosting.JavaScript v13.4.0
interface JavaScriptAppResource {
// ... omitted for brevity
publishAsNodeServer(
entryPoint: string,
outputPath?: string): JavaScriptAppResource;
}

Signature

methodpublishAsNodeServerbuilder
Configures the JavaScript application to publish as a standalone Node.js server that runs a built artifact directly.
publishAsNodeServer(
entryPoint: string,
outputPath?: string): JavaScriptAppResource
entryPointstring
outputPathstringoptional= .
JavaScriptAppResource

Defined on

This method is defined on the following type: