diff --git a/.github/workflows/deno.yaml b/.github/workflows/deno.yaml index 68978694..fad90fb4 100644 --- a/.github/workflows/deno.yaml +++ b/.github/workflows/deno.yaml @@ -71,10 +71,15 @@ jobs: deno.json - name: 🔦 Lighthouse uses: treosh/lighthouse-ci-action@1b0e7c33270fbba31a18a0fbb1de7cc5256b6d39 # 11.4.0 + env: + LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} with: urls: | ${{ steps.deno-deploy.outputs.url }} ${{ steps.deno-deploy.outputs.url }}about/ ${{ steps.deno-deploy.outputs.url }}solutions/solar/ ${{ steps.deno-deploy.outputs.url }}solutions/geothermal/environment/ + ${{ steps.deno-deploy.outputs.url }}calculator/ uploadArtifacts: true + temporaryPublicStorage: true + configPath: lighthouserc.json diff --git a/lighthouserc.json b/lighthouserc.json new file mode 100644 index 00000000..d587c7dd --- /dev/null +++ b/lighthouserc.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://gist.githubusercontent.com/jfhr/181123d7acc87ea329be3700d9c37594/raw/9dafefb638f8ff0660930cc48debefa1dfcd87ca/lighthouserc.schema.json", + "ci": { + "assert": { + "preset": "lighthouse:recommended", + "assertions": { + "is-crawlable": ["off"] + } + } + } +} diff --git a/src/static/robots.txt b/src/static/robots.txt new file mode 100644 index 00000000..eb053628 --- /dev/null +++ b/src/static/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/src/static/sitemap.xml b/src/static/sitemap.xml new file mode 100644 index 00000000..4ca6ad60 --- /dev/null +++ b/src/static/sitemap.xml @@ -0,0 +1,45 @@ + + + + https://why-switch.deno.dev/ + 2024-05-08 + weekly + 1.0 + + + https://why-switch.deno.dev/about/ + 2024-05-08 + weekly + 0.8 + + + https://why-switch.deno.dev/calculator/ + 2024-05-08 + weekly + 0.8 + + + https://why-switch.deno.dev/solutions/solar/ + 2024-05-08 + weekly + 0.5 + + + https://why-switch.deno.dev/solutions/geothermal/ + 2024-05-08 + weekly + 0.5 + + + https://why-switch.deno.dev/solutions/recycling/ + 2024-05-08 + weekly + 0.5 + + + https://why-switch.deno.dev/solutions/other/ + 2024-05-08 + weekly + 0.5 + +