Skip to content
Open
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
6 changes: 5 additions & 1 deletion packages/serverless/src/get-browser-instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ export const getBrowserInstanceImplementation: GetBrowserInstance = async <
const actualChromiumOptions: ChromiumOptions = {
...chromiumOptions,
// Override the `null` value, which might come from CLI with swANGLE
gl: chromiumOptions.gl ?? 'swangle',
// If the user specifies `angle`, we also switch to `swangle` because `angle` is not supported on Lambda
gl:
chromiumOptions.gl === 'angle' || chromiumOptions.gl === null
? 'swangle'
: chromiumOptions.gl,
enableMultiProcessOnLinux: false,
};
const configurationString = makeConfigurationString(
Expand Down
Loading