Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,11 @@ module.exports = async function (eleventyConfig) {
if (!isDev) {
eleventyConfig.on("afterBuild", async () => {
async function convertSvgToJpeg(inputDir, outputDir) {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
executablePath: await puppeteer.executablePath(),
args: ["--no-sandbox", "--disable-setuid-sandbox"],
headless: true,
});
const page = await browser.newPage();

// Read all files in the input directory
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[build]
command = "npx puppeteer browsers install chrome && npm run build"
command = "npm run build"
Loading
Loading