mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-18 23:13:24 +00:00
chore: generate
This commit is contained in:
parent
96a74ffcc6
commit
d6ed520c25
1 changed files with 2 additions and 8 deletions
|
|
@ -33,13 +33,8 @@ export interface BootOptions {
|
|||
* serves unauthenticated, so an embedder without a password must front the handler with its own
|
||||
* access control.
|
||||
*/
|
||||
export const make = Effect.fn("ServerFetch.make")(function* (
|
||||
options: ServerOptions = {},
|
||||
boot: BootOptions = {},
|
||||
) {
|
||||
const context = yield* Layer.build(
|
||||
createRoutes(options, () => []).pipe(Layer.provide(HttpServer.layerServices)),
|
||||
)
|
||||
export const make = Effect.fn("ServerFetch.make")(function* (options: ServerOptions = {}, boot: BootOptions = {}) {
|
||||
const context = yield* Layer.build(createRoutes(options, () => []).pipe(Layer.provide(HttpServer.layerServices)))
|
||||
// Forked so the returned handler is never delayed; resumed drains are already
|
||||
// logged and durably recorded by the execution layer.
|
||||
if (boot.resumeSuspendedSessions)
|
||||
|
|
@ -51,4 +46,3 @@ export const make = Effect.fn("ServerFetch.make")(function* (
|
|||
HttpEffect.toWebHandlerWith(context),
|
||||
)
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue