fixed unlighthouse 3
This commit is contained in:
parent
ba2710f4b3
commit
2ec229f40b
3 changed files with 5 additions and 5 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Add table
Reference in a new issue