Skip to content

Commit 7c6724f

Browse files
committed
Route browser fs and logs endpoints directly to the VM
Add fs and logs to the default direct-to-VM subresource prefixes so filesystem operations and log streaming use the cached browser base_url and JWT instead of the control plane. Extensions, replays and telemetry/events stay on the control plane.
1 parent cfa5f27 commit 7c6724f

2 files changed

Lines changed: 367 additions & 19 deletions

File tree

src/lib/browser-routing.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ const DEFAULT_BROWSER_ROUTING_SUBRESOURCES = [
4747
'computer',
4848
'playwright',
4949
'process',
50+
'fs',
51+
'logs',
5052
];
5153
const BROWSER_ROUTE_CACHEABLE_PATH = /^\/(?:v\d+\/)?browsers(?:\/[^/]+)?\/?$/;
5254
const BROWSER_POOL_ACQUIRE_PATH = /^\/(?:v\d+\/)?browser_pools\/[^/]+\/acquire\/?$/;

0 commit comments

Comments
 (0)