Skip to content

Bun's req.clone() does not clone bodies properly yet (warning) #151

Open
@seveibar

Description

@seveibar

Edgespec doesn't work with Bun.serve because of this bug. Took a while to debug, so I wanted to share the learning. oven-sh/bun#8668

You can easily get a proper request shim with:

import { Request as EdgeRuntimeRequest } from "@edge-runtime/primitives"

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions