Updated for Lighthouse

This commit is contained in:
Firq 2024-10-21 22:36:12 +02:00
parent 1f7709031c
commit 423b985334
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
4 changed files with 26 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{
"name": "@firq/fgosite",
"type": "module",
"version": "0.2.0-pre.12",
"version": "0.2.0-pre.13",
"private": true,
"scripts": {
"dev": "astro dev",

View file

@ -17,6 +17,15 @@
"value" : "max-age=31536000"
}]
},
{
"source": "**/*.woff2",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache"
}
]
},
{
"source" : "**/*.@(jpg|jpeg|gif|png|webp|svg)",
"headers" : [{

View file

@ -10,6 +10,10 @@ import ta_collection from 'iconoir/icons/database.svg'
import blog from 'iconoir/icons/bookmark-book.svg'
import about from 'iconoir/icons/mail.svg'
import workSans500 from '@fontsource/work-sans/files/work-sans-latin-500-normal.woff2?url';
import workSans600 from '@fontsource/work-sans/files/work-sans-latin-600-normal.woff2?url';
import workSans700 from '@fontsource/work-sans/files/work-sans-latin-700-normal.woff2?url';
export interface Props {
title: string
currentpage: string
@ -71,6 +75,9 @@ const mapped_navdata = navdata.map((item) => ({
<!-- Disable DarkReader, as site is already in dark mode -->
<meta name="darkreader-lock" content="this site only has darkmode">
<!-- Links -->
<link rel="preload" as="font" type="font/woff2" href={workSans500} crossorigin="anonymous" />
<link rel="preload" as="font" type="font/woff2" href={workSans600} crossorigin="anonymous" />
<link rel="preload" as="font" type="font/woff2" href={workSans700} crossorigin="anonymous" />
<link rel="icon" type="image/ico" href="/favicon.ico" />
<link rel="sitemap" href="/sitemap-index.xml" />
<link href="https://mastodon.neshweb.net/@Firq" rel="me" />

View file

@ -1,10 +1,18 @@
export default {
puppeteerOptions: {
args: ["--no-sandbox", "--disable-setuid-sandbox"],
args: [
"--no-sandbox",
"--disable-setuid-sandbox"
],
},
ci: {
budget: 50,
buildStatic: true
},
scanner: {
samples: 3,
device: 'desktop',
sitemap: true,
},
outputPath: "unlighthouse-reports",
}