1/** `AWS.Lambda.MicrovmImage` bootstrap on the bun runtime. */
2import { BunServices } from "@effect/platform-bun";
3import { BunHttpServer } from "../../Http.ts";
4import { bootstrapMicrovm, type MicrovmBootstrapOptions } from "./Microvm.ts";
5
6export const bootstrap = (
7 entrypoint: unknown,
8 options: MicrovmBootstrapOptions,
9): Promise<void> =>
10 bootstrapMicrovm(
11 { services: BunServices.layer, httpServer: BunHttpServer() },
12 entrypoint,
13 options,
14 );