diff --git a/packages/browser/src/fetch.ts b/packages/browser/src/fetch.ts index b56007f..6872de4 100644 --- a/packages/browser/src/fetch.ts +++ b/packages/browser/src/fetch.ts @@ -58,9 +58,9 @@ export const fetch = (url: string, options: LightpandaFetchOptions = defaultOpti const executablePath = getExecutablePath() const flags = [ { flag: `--dump ${dumpOptions?.type ?? 'html'}`, condition: dump }, - { flag: '--insecure_disable_tls_host_verification', condition: disableHostVerification }, - { flag: '--obey_robots', condition: obeyRobots }, - { flag: `--http_proxy ${httpProxy}`, condition: httpProxy }, + { flag: '--insecure-disable-tls-host-verification', condition: disableHostVerification }, + { flag: '--obey-robots', condition: obeyRobots }, + { flag: `--http-proxy ${httpProxy}`, condition: httpProxy }, ] .map(f => (f.condition ? f.flag : '')) .join(' ') diff --git a/packages/browser/src/serve.ts b/packages/browser/src/serve.ts index 5762316..e4b0019 100644 --- a/packages/browser/src/serve.ts +++ b/packages/browser/src/serve.ts @@ -62,16 +62,16 @@ export const serve = (options: LightpandaServeOptions = defaultOptions) => { { flag: '--port', value: port }, { flag: '--timeout', value: timeout }, { - flag: '--insecure_disable_tls_host_verification', + flag: '--insecure-disable-tls-host-verification', value: disableHostVerification, flagOnly: true, }, { - flag: '--obey_robots', + flag: '--obey-robots', value: obeyRobots, flagOnly: true, }, - { flag: '--http_proxy', value: httpProxy }, + { flag: '--http-proxy', value: httpProxy }, ] .flatMap(f => (f.value ? [f.flag, !f.flagOnly ? f.value.toString() : ''] : '')) .filter(f => f !== '')