Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddBunApp

Method
📦 Aspire.Hosting.JavaScript v17.0.0
func (DistributedApplicationBuilder) AddBunApp(
name string,
appDirectory string,
scriptPath string,
) BunAppResource

Signature

methodAddBunAppbuilder
Adds a Bun application to the application model. Bun should be available on the PATH.
AddBunApp(
name string,
appDirectory string,
scriptPath string,
) BunAppResource
namestringThe name of the resource.
appDirectorystringThe path to the directory containing the Bun application.
scriptPathstringThe path to the script (for example, server.ts) relative to appDirectory to run.
BunAppResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder