You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config/extensions/playwright.mdx
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,32 @@ The extension sets the following environment variables during the build:
91
91
-`PLAYWRIGHT_SKIP_BROWSER_VALIDATION`: Set to `1` to skip browser validation at runtime
92
92
-`DISPLAY`: Set to `:99` if `headless: false` (for Xvfb)
93
93
94
+
## Troubleshooting
95
+
96
+
### Browser download failures
97
+
98
+
If you encounter errors during the build process related to browser downloads (e.g., "failed to solve: process did not complete successfully: exit code: 9"), this is a known issue with certain Playwright versions.
99
+
100
+
**Workaround:** Revert Playwright to version `1.40.0` in your project dependencies. You can specify this version explicitly in your config:
For more details, see [GitHub issue #2440](https://github.com/triggerdotdev/trigger.dev/issues/2440#issuecomment-3815104376).
119
+
94
120
## Managing browser instances
95
121
96
122
To prevent issues with waits and resumes, you can use middleware and locals to manage the browser instance. This will ensure the browser is available for the whole run, and is properly cleaned up on waits, resumes, and after the run completes.
curl -X GET "https://api.trigger.dev/api/v1/deployments/latest" \
668
+
-H "Authorization: Bearer tr_dev_1234"
669
+
670
+
"/api/v1/deployments/{version}/promote":
671
+
parameters:
672
+
- in: path
673
+
name: version
674
+
required: true
675
+
schema:
676
+
type: string
677
+
description: The deployment version to promote (e.g., "20250228.1").
678
+
post:
679
+
operationId: promote_deployment_v1
680
+
summary: Promote deployment
681
+
description: Promote a previously deployed version to be the current version for the environment. This makes the specified version active for new task runs.
682
+
responses:
683
+
"200":
684
+
description: Deployment promoted successfully
685
+
content:
686
+
application/json:
687
+
schema:
688
+
type: object
689
+
properties:
690
+
id:
691
+
type: string
692
+
description: The deployment ID
693
+
version:
694
+
type: string
695
+
description: The deployment version (e.g., "20250228.1")
696
+
shortCode:
697
+
type: string
698
+
description: The short code for the deployment
699
+
"400":
700
+
description: Invalid request
701
+
content:
702
+
application/json:
703
+
schema:
704
+
type: object
705
+
properties:
706
+
error:
707
+
type: string
708
+
"401":
709
+
description: Unauthorized - API key is missing or invalid
0 commit comments