Skip to content

feat(cli): Add custom single-page fallback file - #857

Open
ahfoysal wants to merge 1 commit into
vercel:mainfrom
ahfoysal:fix/single-file-fallback
Open

feat(cli): Add custom single-page fallback file#857
ahfoysal wants to merge 1 commit into
vercel:mainfrom
ahfoysal:fix/single-file-fallback

Conversation

@ahfoysal

@ahfoysal ahfoysal commented Jul 7, 2026

Copy link
Copy Markdown

Closes #855.

Summary

  • Adds --single-file to customize SPA fallback target when --single is used.
  • Normalizes custom fallback paths so foo.html becomes /foo.html.
  • Keeps --single default behavior unchanged at /index.html.
  • Updates help text and CLI argument parsing/types.
  • Adds a targeted CLI test for parsing the new option.

This follows existing --single rewrite behavior and reuses serve-handler rewrites without schema changes.

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.

Fallback for SPA should support files other than index.html

1 participant