Caching Playwright's Chromium dependency

You can cache Playwright Chromium by installing netlify-plugin-playwright-cache from Netlify UI or as a dependency

  1. Install from Netlify UI
  2. 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.

GitHub: GitHub - nvh95/netlify-plugin-playwright-cache: 🤖 Persist the Playwright executable between Netlify builds