Skip to main content
For information on creating and managing environment variables and secrets (including the difference between variables and secrets, inheritance, and where to set them), see the Environment Variables documentation.

Built-in variables available in Playwright Check Suites

Checkly sets the following environment variables on every Playwright Check Suite run:

CHECKLY_RUN_SOURCE values

Use built-in variables

Common ways to use Checkly’s built-in environment variables:

Adjust behavior based on trigger type

Set different behavior for scheduled runs versus manual triggers:

Configure Playwright based on environment

Adjust your Playwright configuration to always record traces on Checkly. In your playwright.config.ts, use the CHECKLY variable to identify it’s from Checkly.
playwright.config.ts

Access region information

Use region information for debugging or region-specific behavior: