Skip to content

Hyperdrive does not work localhost when running 2 workers in the same process #9485

Open
@piffie

Description

@piffie

What versions & operating system are you using?

wrangler v4.16, windows

Please provide a link to a minimal reproduction

No response

Describe the Bug

When using 2 wrangler in localhost mode:
aka
wrangler dev -c worker1/wrangler.jsonc -c worker2/wrangler.jsonc

then Wrangler only passes the Hyperdrive env vars to the primary worker, but not to secondaries - if the secondary has his own hyperdrive config, it just does not work. Making RPC development in localhost mode extremely painful.

Image

you see that the hyperdrive string is wrong - compared to run it seperately.

Please provide any relevant error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that isn't working

    Type

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions