Skip to content

Add Start.export for serverless environments #69

Description

@nounder

Start.serve owns the full server lifecycle by calling Bun.serve() and BunRuntime.runMain. Serverless platforms like Cloudflare Workers or Deno Deploy expect a fetch handler export.

Add Start.export that accepts layers same as Start.pack but returns a fetch(request: Request): Promise<Response> instead of starting a server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions