JavaScriptAppResource.publishAsNodeServer
Method
interface JavaScriptAppResource { // ... omitted for brevity publishAsNodeServer( entryPoint: string, outputPath?: string): JavaScriptAppResource;}Signature
method
publishAsNodeServer builderConfigures the JavaScript application to publish as a standalone Node.js server that runs a built artifact directly.
publishAsNodeServer( entryPoint: string, outputPath?: string): JavaScriptAppResourceParameters
entryPoint stringThe 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`.outputPath stringoptional= .The relative path containing the built runtime files to copy into the published container. Defaults to the application root.Returns
JavaScriptAppResource Defined on
This method is defined on the following type: