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

fix(config): --spa implies --index option #422

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

Antosser
Copy link
Contributor

@Antosser Antosser commented Feb 27, 2024

If #420 there was still an issue that --spa would work very weirdly without --index; single page applications are never implemented without also using index.htmlfiles. This PR fixes this by automatically settingcli.indextotrueifcli.spa` is set to true.

I could throw an error if the --index flag is not passed in with --spa, but I think those are way too many keystrokes for a feature someone would already expect

I manually tested this and it works great for every case

@EstebanBorai EstebanBorai changed the title fix: --spa without --index bug fix(config): --spa implies --index option Feb 27, 2024
@EstebanBorai EstebanBorai added this pull request to the merge queue Feb 27, 2024
Merged via the queue into http-server-rs:main with commit c369789 Feb 27, 2024
8 checks passed
@Antosser Antosser deleted the spaindexcombinationfix branch February 28, 2024 00:01
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.

None yet

2 participants