Repository navigation
fix: worktree branding not applied in vite dev mode - #1038
Merged
Merged
Conversation
… applied Vite's "spa" appType adds its own SPA fallback middleware that serves index.html directly, bypassing the custom catch-all route that calls applyUiBranding(). Changing to "custom" lets our route handle HTML serving, which injects the worktree-colored favicon and banner meta tags. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Greptile SummaryThis PR fixes a one-liner bug where
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: ccb6729 |
tr00x
pushed a commit
to tr00x/paperclip
that referenced
this pull request
Mar 26, 2026
…ee-dynamics fix: worktree branding not applied in vite dev mode
hhhhansel
pushed a commit
to hhhhansel/paperclip
that referenced
this pull request
Mar 27, 2026
…ee-dynamics fix: worktree branding not applied in vite dev mode
8 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
appType: "spa", which adds its own SPA fallback middleware that servesindex.htmldirectly — bypassing the custom catch-all route that callsapplyUiBranding()appTypeto"custom"so our route handles HTML serving and injects worktree-colored favicon + banner meta tagsPAPERCLIP_IN_WORKTREEenv var which is only set by the CLI's worktree init commandsTest plan
curlthat worktree meta tags and dynamic favicon are injected after fixhttp://127.0.0.1:<port>in a worktree instance🤖 Generated with Claude Code