Preview routing
Preview routing is a proxy that maps a URL to a port inside a specific sandbox.
Preview routing makes a network port inside a sandbox reachable at a public URL. A proxy receives each request and reads the sandbox and port from the hostname or path. It then forwards the request to that port inside the right sandbox. The sandbox itself does not need a public address.
The feature exists so that people and programs can see what runs inside a sandbox. A typical example is a web server or a development preview that an agent starts. The proxy applies access control, for example through a token or a signed URL. It can also bring a stopped sandbox back to the running state when a request arrives.
Preview routing is one of the services that a sandbox platform provides on top of its compute. It relies on the overlay network or another internal path to reach the sandbox. It works together with the lifecycle of the sandbox, since a request may need to wait for a start. Similar mechanisms exist in cloud development environments and in preview deployments for web applications.