implement fix for playwright docker build

This commit is contained in:
Francis Cao
2026-05-27 13:46:14 -07:00
parent e916426315
commit bb31fc7388
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
RUN set -x \
&& apk add --no-cache curl \
&& apk add --no-cache curl libc6-compat \
&& npm install -g pnpm
RUN echo {} > package.json
+1 -1
View File
@@ -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",
@@ -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 {