eslint / config-inspector

A visual tool for inspecting and understanding your ESLint flat configs.
https://www.npmjs.com/package/@eslint/config-inspector
Apache License 2.0
650 stars 18 forks source link

404 when statically serving index.html #89

Open mmkal opened 1 month ago

mmkal commented 1 month ago

Hi, slightly strange one here. I'm finding that when I serve the output directory (in case it's relevant, via a next.js middleware which streams the file content in from blob storage), visiting <base-path>/index.html doesn't work (I get a pretty 404 page), but visiting <base-path>/ does work, after redirecting to /configs.

Example:

Works: https://www.artifact.ci/artifact/blob/mmkal/artifact.ci/10686862160/eslint/.eslint-config-inspector 404s: https://www.artifact.ci/artifact/blob/mmkal/artifact.ci/10686862160/eslint/.eslint-config-inspector/index.html

Note that clicking "Go back home" on the 404 page makes it work again.

But when you curl each of the above, they are identical. Have I done something wrong in my server or is there some strange client-side logic happening?