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