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:
Emi Matchu 2021-08-17 01:44:08 -07:00
parent c28366772d
commit 49abb92c03

View file

@ -36,7 +36,7 @@ const ASSET_IMAGE_PAGE_BASE_URL = process.env.VERCEL_URL
let BROWSER; let BROWSER;
async function getBrowser() { async function getBrowser() {
if (!BROWSER) { if (!BROWSER) {
BROWSER = await playwright.launchChromium(); BROWSER = await playwright.launchChromium({ headless: true });
} }
return BROWSER; return BROWSER;
} }