Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 when statically serving index.html #89

Open
mmkal opened this issue Sep 3, 2024 · 0 comments
Open

404 when statically serving index.html #89

mmkal opened this issue Sep 3, 2024 · 0 comments

Comments

@mmkal
Copy link
Contributor

mmkal commented Sep 3, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant