Updated for Lighthouse
This commit is contained in:
parent
1f7709031c
commit
423b985334
4 changed files with 26 additions and 2 deletions
|
@ -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",
|
||||
|
|
|
@ -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" : [{
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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",
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue