1/** `AWS.Lambda.MicrovmImage` bootstrap on the node runtime. */
2import { NodeServices } from "@effect/platform-node";
3import { NodeHttpServer } 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: NodeServices.layer, httpServer: NodeHttpServer() },
12 entrypoint,
13 options,
14 );