lighthouse-ci icon indicating copy to clipboard operation
lighthouse-ci copied to clipboard

Impossible to run specific URLs in SPA with staticDistDir

Open kamilkazmierczakMtab opened this issue 2 years ago • 0 comments

I am using lhci autorun with staticDistDir

ci: {
    collect: {
      staticDistDir: './build',
      ...

and I can see that it runs on http://localhost:51879/index.html and everything is fine, but when I want to add additional URL inside app to verify with url option it does not work. When I provide url: ['/test-page'] it tries to load http://localhost:62009/test-page and fails with error

Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Status code: 404)

kamilkazmierczakMtab avatar Jun 03 '22 11:06 kamilkazmierczakMtab