You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
feat(self): support `listen` option