fixed unlighthouse 3

This commit is contained in:
Firq 2025-04-08 20:44:47 +02:00
parent ba2710f4b3
commit 2ec229f40b
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
3 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "@firq/fgosite",
"version": "0.2.0-pre.83",
"version": "0.2.0-pre.84",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@firq/fgosite",
"version": "0.2.0-pre.83",
"version": "0.2.0-pre.84",
"dependencies": {
"@astro-community/astro-embed-youtube": "^0.5.6",
"@astrojs/check": "^0.9.4",

View file

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

View file

@ -1,7 +1,7 @@
export default async () => {
const sitemap = await (await fetch('http://localhost:8081/sitemap-0.xml')).text()
const sitemap = await (await fetch('http://website:8081/sitemap-0.xml')).text()
const urls = sitemap.match(/<loc>(.*?)<\/loc>/g)!.map(
(loc) => loc.replace(/<\/?loc>/g, '').replace(/https:\/\/firq.dev/g, 'http://localhost:8081')
(loc) => loc.replace(/<\/?loc>/g, '').replace(/https:\/\/firq.dev/g, 'http://website:8081')
)
return {
lighthouseOptions: {