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

If a directory is requested, check if index.html exists #323

Closed
wants to merge 2 commits into from

Conversation

amygrinn
Copy link
Contributor

Also simplified the pathname.

@alallier
Copy link
Owner

Thanks for the PRs, I hopefully should have some time this week to check them out

@alallier
Copy link
Owner

alallier commented Jan 2, 2023

@taylorgrinn can you describe what you were trying to do here? Reload always watches a directory and attempts to open the index.html by default if an alternative start page is not defined in the command line options

@cekvenich2
Copy link

@alallier This is common issue for dev.
This works:
http://154.12.250.248:8080/desEx/index.html
This does not:
http://154.12.250.248:8080/desEx
http://154.12.250.248:8080/desEx/

In production, we would not want to have index.html, we have just the url w/ 'real' http server. So development nav using reload CLI and product nav is not same. A work around is not to use the CLI but write your own dev server. Ideally, I can just use the CLI.

@alallier
Copy link
Owner

Closing in favor of #326

@alallier alallier closed this Aug 14, 2024
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

Successfully merging this pull request may close these issues.

3 participants