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",
|
"name": "@firq/fgosite",
|
||||||
"version": "0.2.0-pre.83",
|
"version": "0.2.0-pre.84",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@firq/fgosite",
|
"name": "@firq/fgosite",
|
||||||
"version": "0.2.0-pre.83",
|
"version": "0.2.0-pre.84",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astro-community/astro-embed-youtube": "^0.5.6",
|
"@astro-community/astro-embed-youtube": "^0.5.6",
|
||||||
"@astrojs/check": "^0.9.4",
|
"@astrojs/check": "^0.9.4",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@firq/fgosite",
|
"name": "@firq/fgosite",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.2.0-pre.83",
|
"version": "0.2.0-pre.84",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
export default async () => {
|
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(
|
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 {
|
return {
|
||||||
lighthouseOptions: {
|
lighthouseOptions: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue