This feature is only available in the v4 beta. To upgrade to v4, see the upgrade to v4 docs.
To use the Lightpanda browser in your project, add the extension to your trigger.config.ts file:
trigger.config.ts
import { defineConfig } from "@trigger.dev/sdk";
import { lightpanda } from "@trigger.dev/build/extensions/lightpanda";

export default defineConfig({
  project: "<project ref>",
  build: {
    extensions: [lightpanda()],
  },
});

Options

  • version: The version of the browser to install. Default: "latest".
  • disableTelemetry: Whether to disable telemetry. Default: false.
For example:
trigger.config.ts
import { defineConfig } from "@trigger.dev/sdk";
import { lightpanda } from "@trigger.dev/build/extensions/lightpanda";

export default defineConfig({
  project: "<project ref>",
  build: {
    extensions: [
      lightpanda({
        version: "nightly",
        disableTelemetry: true,
      }),
    ],
  },
});

Development

When running in dev, you will first have to download the Lightpanda browser binary and make sure it’s in your PATH. See Lightpanda’s installation guide.

Next steps