PublishAsNodeServer
Method
func (JavaScriptAppResource) PublishAsNodeServer( entryPoint string, options ...*PublishAsNodeServerOptions,) JavaScriptAppResourceSignature
method
PublishAsNodeServer builderConfigures the JavaScript application to publish as a standalone Node.js server that runs a built artifact directly.
PublishAsNodeServer( entryPoint string, options ...*PublishAsNodeServerOptions,) 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 .options...*PublishAsNodeServerOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*PublishAsNodeServerOptions argument.
OutputPath *stringThe relative path containing the built runtime files to copy into the published container. Defaults to the application root.Returns
JavaScriptAppResource The updated resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: