1/** `Cloudflare.Container` bootstrap on the bun runtime. */
2import { BunServices } from "@effect/platform-bun";
3import { BunHttpServer } from "../../Http.ts";
4import {
5 bootstrapContainer,
6 type ContainerBootstrapOptions,
7} from "./CloudflareContainer.ts";
8
9export const bootstrap = (
10 entrypoint: unknown,
11 options: ContainerBootstrapOptions,
12): Promise<void> =>
13 bootstrapContainer(
14 { services: BunServices.layer, httpServer: BunHttpServer() },
15 entrypoint,
16 options,
17 );