Use headless chrome in assetImage
Oops, I didn't realize this new package had a headless option! Definitely use it lol, makes dev environment way more chill
This commit is contained in:
parent
c28366772d
commit
49abb92c03
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ const ASSET_IMAGE_PAGE_BASE_URL = process.env.VERCEL_URL
|
|||
let BROWSER;
|
||||
async function getBrowser() {
|
||||
if (!BROWSER) {
|
||||
BROWSER = await playwright.launchChromium();
|
||||
BROWSER = await playwright.launchChromium({ headless: true });
|
||||
}
|
||||
return BROWSER;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue