Skip to content

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

@LeoBorai LeoBorai changed the title fix: --spa without --index bug fix(config): --spa implies --index option Feb 27, 2024
@LeoBorai LeoBorai 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
@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.

2 participants