effect-io-ai

Package: @effect/platform-bun
Module: BunHttpServer

BunHttpServer.layerConfig

Creates the Bun HTTP server and support-services layer from configurable serve options.

Signature

declare const layerConfig: <R extends string>(options: Config.Wrap<ServeOptions<R> & { readonly disablePreemptiveShutdown?: boolean | undefined; readonly gracefulShutdownTimeout?: Duration.Input | undefined; }>) => Layer.Layer<Server.HttpServer | HttpPlatform | FileSystem.FileSystem | Etag.Generator | Path.Path, ConfigError>

Source

Since v4.0.0