Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
add back PLAYWRIGHT_URL implementation
Francis Cao1a6f494754eb
diff --git a/package.json b/package.jsonindex 6252c5450..a8a017700 100644--- a/package.json+++ b/package.json@@ -99,6 +99,7 @@"npm-run-all": "^4.1.5","papaparse": "^5.5.3","pg": "^8.21.0",+ "playwright-core": "^1.60.0","prisma": "^7.8.0","prop-types": "^15.8.1","pure-rand": "^8.4.0",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 51de071c5..ed0e7f952 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -146,6 +146,9 @@ importers:pg:specifier: ^8.21.0version: 8.21.0+ playwright-core:+ specifier: ^1.60.0+ version: 1.60.0prisma:specifier: ^7.8.0version: 7.8.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])diff --git a/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts b/src/queries/sql/heatmap/ensureHeatmapSnapshot.tsindex 86acd6f88..f76f6ac81 100644--- a/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts+++ b/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts@@ -578,6 +578,13 @@ function getSnapshotErrorMessage(error: unknown) {}async function createSnapshotBrowser() {+ const endpoint = process.env.PLAYWRIGHT_URL?.trim();++ if (endpoint) {+ const { chromium } = await import('playwright-core');+ return chromium.connect(endpoint);+ }+const { chromium } = await import('@playwright/test');return chromium.launch({channel: 'chromium',