Skip to content

Commit 46f7c0b

Browse files
committed
revert some browser options
1 parent 234d090 commit 46f7c0b

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

apps/playwright-browser-tunnel/src/PlaywrightBrowserTunnel.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -309,18 +309,11 @@ export class PlaywrightTunnel {
309309
const { chromium, firefox, webkit } = playwright;
310310
const browsers: Record<ISupportedBrowsers, BrowserType> = { chromium, firefox, webkit };
311311

312-
// Ensure headed mode for local browser display with container-safe fallbacks
313-
const launchOptionsWithDefaults: LaunchOptions = {
314-
headless: false, // Keep headed mode for local browser display
312+
const browserServer: BrowserServer = await browsers[browserName].launchServer({
315313
...launchOptions,
316-
args: [
317-
'--no-sandbox', // Required for container environments
318-
'--disable-dev-shm-usage', // Prevents /dev/shm crashes in containers
319-
...(launchOptions.args || [])
320-
]
321-
};
314+
headless: false
315+
});
322316

323-
const browserServer: BrowserServer = await browsers[browserName].launchServer(launchOptionsWithDefaults);
324317
if (!browserServer) {
325318
throw new Error(
326319
`Failed to launch browser server for ${browserName} with options: ${JSON.stringify(launchOptions)}`

0 commit comments

Comments
 (0)