Commit 0d4a3af
committed
Install puppeteer Chrome explicitly in Netlify build
The docs build screenshots examples with puppeteer, which needs a Chrome
binary. Puppeteer downloads it in a postinstall hook, but Netlify caches
node_modules and skips postinstall when the lockfile is unchanged, so Chrome
was missing on most builds ("Could not find Chrome").
Install chrome-headless-shell explicitly before building, and persist it via a
repo-local PUPPETEER_CACHE_DIR that netlify-plugin-cache restores across
deploys.1 parent 32e9bdd commit 0d4a3af
2 files changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
11 | 18 | | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
16 | 26 | | |
17 | | - | |
18 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
19 | 30 | | |
20 | 31 | | |
21 | 32 | | |
22 | 33 | | |
23 | | - | |
| 34 | + | |
0 commit comments