fix(lighthouse): use staticDistDir, drop Playwright dependency

- lighthouserc.json: replace startServerCommand:npm-run-preview
  with staticDistDir:./dist so LHCI serves files directly
- CI workflow: remove Playwright/Chromium install step and
  LHCI_CHROME_PATH env var (LHCI bundles its own Puppeteer)
- LHCI now uses its built-in static server + bundled Chromium

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Barcode Betty
2026-03-30 19:29:42 +00:00
committed by cartsnitch-ci[bot]
parent 0bb4b7d183
commit 01ea36c5aa
2 changed files with 1 additions and 7 deletions
-6
View File
@@ -57,13 +57,7 @@ jobs:
cache: npm
- run: npm ci
- run: npm run build
- name: Install Chromium
run: |
npm install -g playwright
npx playwright install chromium
- name: Run Lighthouse CI
env:
LHCI_CHROME_PATH: /home/runner/.cache/ms-playwright/chromium-1208/chrome-linux/chrome
run: |
npm install -g @lhci/cli
lhci autorun
+1 -1
View File
@@ -1,7 +1,7 @@
{
"ci": {
"collect": {
"startServerCommand": "npm run preview",
"staticDistDir": "./dist",
"url": ["http://localhost:4173/"],
"numberOfRuns": 1
},