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,