question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Only files in staticDistDir root are collected

See original GitHub issue

Using autorun against a static site, only the files in the root of the directory are tested.

e.g. If I have a static site with the following structure:

.
|____news
| |____articles.html
|__index.html

then only index.html is collected.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

4reactions
patrickhulcecommented, Nov 27, 2019

So we can’t truly make this recursive by default without a breaking change since it might cause previously succeeding builds to start failing as new URLs are included, but manual support has been introduced in 93b674203a39520d40f6c985048d83d2ed46a2b8. We’ll make sure this recursive support gets into 0.4.0 tracked by #119 👍

Once 93b674203a39520d40f6c985048d83d2ed46a2b8 is released you’d solve the issue above with

lhci autorun --collect.static-dist-dir=./ \
  --collect.url=/news/articles.html \
  --collect.url=/index.html
1reaction
patrickhulcecommented, Nov 15, 2019

Thanks for filing @andypattenden! This was intentional to prevent ballooning the number of files tested and taking far too long with low marginal returns, but I guess it makes sense to support limiting this again with the url option or automatically limiting to the first 5 files found.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Performance monitoring with Lighthouse CI - web.dev
If your site is static, add the staticDistDir property to the ci.collect object to indicate where your static files are located.
Read more >
Continuous Performance Analysis with Lighthouse CI and ...
The ci.collect object offers several options to control how the Lighthouse CI collects test reports. The staticDistDir option is used to ...
Read more >
https://raw.githubusercontent.com/GoogleChrome/lig...
If your HTML files are located in the root of your repo, just use `./`. ```js module.exports = { ci: { collect: {...
Read more >
Testing static sites with Lighthouse CI and GitHub Actions
Any project which outputs a static set of HTML/JS/CSS files into a ... that we just want to test the root index page...
Read more >
Quality Assess your website with Lighthouse
The collect option is for which pages to audit. If you have multiple .html files in the folder, you might only need the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found