Investigate failures in twbs/bootstrap
Closed this issue · 7 comments
Starting with recentish release, linkinator started failing on a perfectly valid link in the bootstrap docs. The issue was raised here:
twbs/bootstrap#32678 (comment)
This link shows a 404:
https://getbootstrap.com/docs/5.0/
I debugged a little and it turns out to be an issue with the https://github.com/vercel/serve-handler transition, which was done for directory listings. More research needed.
cc @XhmikosR
Not sure if it will help, but after reading the source code a bit I think it'd be better if
- this would be moved to a separate function which would return the
expandedPaths
and usePromise.all
maybe?Lines 78 to 107 in cb1d808
- perhaps use more
path
API methods in options.ts, likebasename
,parse
,join
etc instead of this manual handling of paths?
In fact, it seem any directory with periods will return a 404 wrongfully.
See also vercel/serve-handler#120
Might be worth looking into something else :)
Aye, apologies - been work busy.
No worries, just trying to group all the info together.
I want to also add something obvious that I was forgetting. On Windows, filenames cannot contain periods.
I hit this on another repo with linkinator 2.11.2, and I was like WTH.
But this original issue happens on nix.
I started poking at this last night, and came to a funny conclusion ... I don't think I need an npm module for this at all. Since we control both the server and the client, 90% of web server features aren't useful. I started on a PR to replace this with a plain ol HTTP server. More soon.
🎉 This issue has been resolved in version 2.13.2 🎉
The release is available on:
Your semantic-release bot 📦🚀