publishAsNodeServer

Method
📦 Aspire.Hosting.JavaScript v17.0.0
interface BunAppResource {
// ... 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
entryPointstringThe relative path to the Node.js entry point to execute in the published container after the build completes, such as `.output/server/index.mjs` or `build/index.js`.
outputPathstringoptional= .The relative path containing the built runtime files to copy into the published container. Defaults to the application root.
JavaScriptAppResource

Applies to

This method applies to the following types: