Skip to content

dev server listener should use native runtime serve #4816

Closed

Description

@pi0x

The dev worker already runs in the same runtime as the CLI (Bun/Deno implement node:worker_threads, and env-runner serves the app with runtime-aware srvx), but the outer dev listener in src/dev/server.ts still imports serve from srvx/node, so under Bun/Deno it goes through the node:http compat layer. It should use srvx so it picks Bun.serve() / Deno.serve(); the websocket upgrade path currently relies on server.node.server and needs a runtime-agnostic alternative.

Follow-up to #3450.

Triaged with AI assistance.

Activity

  1. added
    enhancement
    dev
    on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    devenhancementpreset:bunpreset:deno

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions