addBunApp

Method
📦 Aspire.Hosting.JavaScript v17.0.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
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

Applies to

This method applies to the following types: