publishAsStaticWebsite
Method
interface BunAppResource { // ... omitted for brevity publishAsStaticWebsite( apiPath?: string, apiTarget?: IResourceWithServiceDiscovery, outputPath?: string, stripPrefix?: boolean, targetEndpointName?: string): JavaScriptAppResource;}Signature
method
publishAsStaticWebsite builderPublishes the JavaScript application as a standalone static website using YARP.
publishAsStaticWebsite( apiPath?: string, apiTarget?: IResourceWithServiceDiscovery, outputPath?: string, stripPrefix?: boolean, targetEndpointName?: string): JavaScriptAppResourceParameters
apiPath stringoptionalapiTarget IResourceWithServiceDiscovery optionaloutputPath stringoptional= diststripPrefix booleanoptional= FalsetargetEndpointName stringoptionalReturns
JavaScriptAppResource Applies to
This method applies to the following types: