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
implement fix for playwright docker build
Francis Caobb31fc7388e2
diff --git a/Dockerfile b/Dockerfileindex 228e5a367..cc3289689 100644--- a/Dockerfile+++ b/Dockerfile@@ -48,7 +48,7 @@ ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwrightRUN addgroup --system --gid 1001 nodejsRUN adduser --system --uid 1001 nextjsRUN set -x \- && apk add --no-cache curl \+ && apk add --no-cache curl libc6-compat \&& npm install -g pnpmRUN echo {} > package.jsondiff --git a/package.json b/package.jsonindex 41cadd011..6252c5450 100644--- a/package.json+++ b/package.json@@ -41,7 +41,7 @@"postbuild": "node scripts/postbuild.js","test": "vitest run","test:watch": "vitest",- "install-heatmap": "playwright install chromium",+ "install-heatmap": "playwright install chromium --no-shell","test:e2e": "playwright test","test:e2e:ui": "playwright test --ui","seed-data": "tsx scripts/seed-data.ts",diff --git a/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts b/src/queries/sql/heatmap/ensureHeatmapSnapshot.tsindex de5b02375..6d837cae9 100644--- a/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts+++ b/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts@@ -571,7 +571,10 @@ async function captureSnapshot(pageW?: number,): Promise<CaptureResult> {const { chromium } = await import('@playwright/test');- const browser = await chromium.launch({ headless: true });+ const browser = await chromium.launch({+ channel: 'chromium',+ headless: true,+ });const initialViewportW = viewportW;try {