// In your test file test('Homepage loads', async ({ page }) => { const baseUrl = process.env.ENVIRONMENT_URL || 'https://example.com' await page.goto(baseUrl) // ... rest of your test })
npx checkly test --env ENVIRONMENT_URL="https://staging.example.com"