Support for links without .html extension
jmfury opened this issue ยท 4 comments
๐ Hyperlink is really an awesome tool, so first off, thanks for putting this out there!
I wondered if it would be possible to support an opt out of the strictness regarding .html
extensions on links - these are essentially false positives in my case
Example: /about
is an error but /about.html
does exist (checking against Next.js build dir)
I'm not sure how common clean internal URL links are among static site generators but my guess is it might be a useful option
I don't know nextjs, so bear with me. How are you able to serve /about with nginx or gh pages if nextjs produces about.html?
Honestly not positive, I don't use nginx
or gh pages ... so bear with me there ๐
- Next.js will produce static html files in a couple ways, in either case the files are able to be served with a static file server (something like serve - common way to serve locally at least) or used by Next.js own server (dynamic mode - e.g. on Vercel)
In this case I'm trying to scan the output of next build
(.next/server/pages
) where statically generated .html
files are at. Running this in context of a GitHub (action) workflow so for me serving the site is kind of irrelevant; my goal is to get the results out of hyperlink
pointed at this dir
๐ Sounds good, thank you!