Next.js Adds an Experimental Go Server Named Switchyard in Front of next startBrief · digest for November 28
Brief≈ 1 min

Next.js Adds an Experimental Go Server Named Switchyard in Front of next start

In self-hosted next start mode, a single Node.js process handles everything at once: accepting HTTP traffic, routing, and rendering React. On Vercel's cloud, the entry layer has long been split into a separate proxy, and now a similar setup is coming to self-hosted servers.

On November 19, 2026, Next.js merged PR #101695 with a Go front-end server, and six hours later PR #102035 named it Switchyard. The wiring is clever: Node.js spawns the Go binary as a child process. Switchyard binds to the public port like :3000 and forwards traffic via httputil.ReverseProxy to the Node server on 127.0.0.1.

For now, this is step one. Switchyard doesn't route anything yet—it works as a transparent reverse proxy forwarding Host and X-Forwarded-*, enforcing header limits, and matching Node's timeouts. One nice touch: the Go pool's idle timeout is one second shorter than Node's keepAliveTimeout so the proxy won't hit a closing socket.

The stack choice is notable too: Vercel's Turbopack bundler is written in Rust, yet they picked Go for the network layer. You enable the proxy manually with __NEXT_EXPERIMENTAL_SWITCHYARD=1, while moving routing into Go is planned for future phases with no firm timeline.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 3