You can cache Playwright Chromium by installing netlify-plugin-playwright-cache
from Netlify UI or as a dependency
- Install from Netlify UI
- Install as a dependency
npm install --save-dev netlify-plugin-playwright-cache
# Or
yarn add -D netlify-plugin-playwright-cache
# Or
pnpm add -D netlify-plugin-playwright-cache
Then update netlify.toml
to include the plugin:
[[plugins]]
package = "netlify-plugin-playwright-cache"
If your builds are failing due to missing executables, Remember to Clear cache and retry deploy after adding the plugin.