Skip to content

Support listen in SelfEnvRunner #84

Closed

Description

@pi0x

SelfEnvRunner closes with an error when listen is set, and its fetch() only calls entry.fetch, so the entry's srvx options (middleware, plugins, trustProxy, node, ...) are ignored, unlike the worker runners where toServerOptions(entry, listen) is passed to srvx serve().

Nitro's nitro serve uses listen with node-worker today, and could use the self runner (about 15ms vs 100ms to ready on our fixture, and no worker round trips for plugin hooks) once the Nitro build plugins are synchronous. Supporting listen would mean starting srvx serve(toServerOptions(entry, listen)) in the host process, reporting its address, and closing that server gracefully in shutdown() before ipc.onClose.

Opened with AI assistance.

Activity

  1. added a commit that references this issue on Nov 9, 2026
    0a32290
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions