Skip to content

Commit

Permalink
Netlify: have Puppeteer install Chrome before builds (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm authored Nov 15, 2024
1 parent 2c286c9 commit 1f9d41f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[build]
command = "npm test && npm start"
command = "npm test && npx puppeteer browsers install chrome && npm start"
publish = "build/"
ignore = "node netlify-ignore-build.js"

[context.production]
command = "npx puppeteer browsers install chrome && npm start"

[build.environment]
# FONTAWESOME_TOKEN
# UNSPLASH_ACCESS_KEY
Expand Down

0 comments on commit 1f9d41f

Please sign in to comment.