From 500080be9f87d0f90561b4fb8c0b08b035502227 Mon Sep 17 00:00:00 2001 From: Firq Date: Tue, 22 Oct 2024 22:12:02 +0200 Subject: [PATCH] sed and desktop --- .forgejo/workflows/unlighthouse.yml | 2 ++ package.json | 2 +- unlighthouse.config.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/unlighthouse.yml b/.forgejo/workflows/unlighthouse.yml index 8be6015..dd2f509 100644 --- a/.forgejo/workflows/unlighthouse.yml +++ b/.forgejo/workflows/unlighthouse.yml @@ -21,6 +21,8 @@ jobs: uses: https://code.forgejo.org/actions/checkout@v3 - name: Run unlighthouse run: unlighthouse-ci --site "http://localhost:8081/" + - name: Replace URLs + run: find ./unlighthouse-reports -type f | xargs sed -i "s|http://localhost:8081|https://preview.firq.dev|g"; - name: Prepare artifacts run: cp serve.json unlighthouse-reports - name: Upload reports diff --git a/package.json b/package.json index 892a05b..ef95db0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@firq/fgosite", "type": "module", - "version": "0.2.0-pre.19", + "version": "0.2.0-pre.20", "private": true, "scripts": { "dev": "astro dev", diff --git a/unlighthouse.config.ts b/unlighthouse.config.ts index 8ae18a1..4e0ccb9 100644 --- a/unlighthouse.config.ts +++ b/unlighthouse.config.ts @@ -13,7 +13,7 @@ export default { buildStatic: true, }, scanner: { - device: 'mobile', + device: 'desktop', sitemap: true, throttle: false, dynamicSampling: false,