harlan-zw / unlighthouse

Scan your entire site with Google Lighthouse in 2 minutes (on average). Open source, fully configurable with minimal setup.
https://unlighthouse.dev
MIT License
3.65k stars 105 forks source link

Router Prefix doesn't work for report screenshots #190

Closed TheDevMinerTV closed 4 months ago

TheDevMinerTV commented 4 months ago

Describe the bug

When running the following command:

pnpx @unlighthouse/cli --debug --output-path ./tmp --site devminer.xyz --build-static --router-prefix /reports/mobile --mobile

the generated files will contain the /reports/mobile prefix for all files EXCEPT for the preview screenshots.

image image

Reproduction

No response

System / Nuxt Info

System:
    OS: Linux 6.5 Alpine Linux
    CPU: (48) x64 Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz
    Memory: 144.39 GB / 204.49 GB
    Container: Yes
    Shell: 1.36.1 - /bin/ash
  Binaries:
    Node: 20.11.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.4 - /usr/local/bin/npm
  Browsers:
    Chromium: 121.0.6167.184
TheDevMinerTV commented 4 months ago

Never mind, apparently this was an issue with my webserver and how it handles a having a trailing slash vs not having one.