Skip to content

armgit / umami

Public Imported from GitHub
0

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.

revert playwright core changes

Francis Caocf7b722fe6dc
diff --git a/next.config.ts b/next.config.ts
index 980bebcc8..922d128bd 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -223,7 +223,6 @@ if (isProd && cloudMode) {
/** @type {import('next').NextConfig} */
export default withNextIntl({
reactStrictMode: false,
- serverExternalPackages: ['playwright-core'],
env: {
apiUrl,
basePath,
diff --git a/package.json b/package.json
index a8a017700..6252c5450 100644
--- a/package.json
+++ b/package.json
@@ -99,7 +99,6 @@
"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.yaml
index ed0e7f952..51de071c5 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -146,9 +146,6 @@ importers:
pg:
specifier: ^8.21.0
version: 8.21.0
- playwright-core:
- specifier: ^1.60.0
- version: 1.60.0
prisma:
specifier: ^7.8.0
diff --git a/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts b/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts
index 42b3eef4f..86acd6f88 100644
--- a/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts
+++ b/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts
@@ -578,13 +578,7 @@ function getSnapshotErrorMessage(error: unknown) {
}
async function createSnapshotBrowser() {
- const { chromium } = await import('playwright-core');
- const endpoint = process.env.PLAYWRIGHT_URL?.trim();
-
- if (endpoint) {
- return chromium.connect(endpoint);
- }
-
+ const { chromium } = await import('@playwright/test');
return chromium.launch({
channel: 'chromium',
headless: true,