fixed unlighthouse 3
This commit is contained in:
parent
ba2710f4b3
commit
2ec229f40b
3 changed files with 5 additions and 5 deletions
|
@ -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
Add a link
Reference in a new issue