Puppeteer build extension
Use the puppeteer build extension to enable support for Puppeteer in your project
WEB SCRAPING: When web scraping, you MUST use a proxy to comply with our terms of service. Direct scraping of third-party websites without the site owner's permission using Trigger.dev Cloud is prohibited and will result in account suspension. See this example which uses a proxy.
To use Puppeteer in your project, add these build settings to your trigger.config.ts file:
import { } from "@trigger.dev/sdk";
import { } from "@trigger.dev/build/extensions/puppeteer";
export default ({
: "<project ref>",
// Your other config settings...
build: {
: [()],
},
});The extension installs Chrome and sets PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome-stable for deployed builds automatically, so you do not need to set it. Don't set it in your Dev environment: the extension does nothing in Dev, and locally Puppeteer uses the browser it downloads on install.
Follow this example to get setup with Trigger.dev and Puppeteer in your project.
Was this page helpful?
Last updated
Edit on GitHub