diff --git a/.github/scripts/markdown_example.mjs b/.github/scripts/markdown_example.mjs index 3074d39e..2859015b 100644 --- a/.github/scripts/markdown_example.mjs +++ b/.github/scripts/markdown_example.mjs @@ -3,7 +3,7 @@ import puppeteer from "puppeteer" //Setup browser const browser = await puppeteer.launch({ - headless: true, + headless: "new", executablePath: process.env.PUPPETEER_BROWSER_PATH, args: ["--no-sandbox", "--disable-extensions", "--disable-setuid-sandbox", "--disable-dev-shm-usage"], ignoreDefaultArgs: ["--disable-extensions"], diff --git a/source/app/metrics/utils.mjs b/source/app/metrics/utils.mjs index 464e0d58..6a10bd0a 100644 --- a/source/app/metrics/utils.mjs +++ b/source/app/metrics/utils.mjs @@ -13,7 +13,7 @@ import fs from "fs/promises" import { JSDOM } from "jsdom" import linguist from "linguist-js" import { marked } from "marked" -import minimatch from "minimatch" +import { minimatch } from "minimatch" import fetch from "node-fetch" import opengraph from "open-graph-scraper" import os from "os" @@ -51,7 +51,7 @@ export const puppeteer = { ignoreDefaultArgs: ["--disable-extensions"], }) }, - headless: true, + headless: "new", events: ["load", "domcontentloaded", "networkidle2"], }