Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions browser_routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ func browserRouteFromRef(ref browserrouting.Ref) (browserrouting.Route, bool) {
func browserRoutingSubresourcesFromEnv() []string {
raw, ok := os.LookupEnv(browserRoutingSubresourcesEnv)
if !ok {
// Path prefixes eligible for direct-to-VM routing. "telemetry/stream" is
// the live SSE endpoint (served by the VM); "telemetry/events" is a
// historical read served by the control plane (S2) and must NOT be here.
return []string{"curl", "telemetry/stream", "computer", "playwright", "process"}
// Path prefixes eligible for direct-to-VM routing. "fs" intentionally
// covers every filesystem endpoint, while "logs/stream" excludes other
// current or future logs endpoints. "telemetry/events" is a historical
// read served by the control plane (S2), unlike the VM's live stream.
return []string{"curl", "telemetry/stream", "computer", "playwright", "process", "fs", "logs/stream"}
}
if strings.TrimSpace(raw) == "" {
return []string{}
Expand Down
Loading
Loading