mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
build(docs): try playwright-aws-lambda
This commit is contained in:
parent
9f21c6b4cb
commit
9f09d893da
3 changed files with 118 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
const sirv = require("sirv");
|
||||
const polka = require("polka");
|
||||
const { chromium } = require("playwright");
|
||||
const playwright = require("playwright-aws-lambda");
|
||||
const fs = require("fs-extra");
|
||||
const path = require("path");
|
||||
|
||||
|
@ -41,11 +41,7 @@ const app = polka()
|
|||
process.exit(1);
|
||||
}
|
||||
|
||||
const browser = await chromium.launch({
|
||||
headless: true,
|
||||
chromiumSandbox: false,
|
||||
args: ["--no-sandbox", "--disable-setuid-sandbox"],
|
||||
});
|
||||
const browser = await playwright.launchChromium();
|
||||
const context = await browser.newContext();
|
||||
const page = await context.newPage();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue