the home site for me: also iteration 3 or 4 of my site

bug: fix puppeteer

Changed files
+11 -2
.github
workflows
tools
+7 -1
.github/workflows/genOG.yaml
···
node-modules-${{ runner.os }}-
- name: Install dependencies (tools)
+
env:
+
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
run: bun install --cwd tools
- name: Install Zola
···
run: zola build
- name: Generate OG Images
-
run: bun run tools/genOG.ts
+
uses: mujo-code/puppeteer-headful@16.6.0
+
env:
+
CI: "true"
+
with:
+
args: bun run tools/genOG.ts
- name: Check for changes
id: git-check
+4 -1
tools/genOG.ts
···
const template = await Bun.file("tools/og.html").text();
-
const browser = await puppeteer.launch();
+
const browser = await puppeteer.launch({
+
args: ["--no-sandbox"],
+
executablePath: process.env.PUPPETEER_EXEC_PATH, // set by docker container
+
});
async function og(
postname: string,