Branch Deployments & Sub-Pages
The Main branch is deployed as the root index, while every other git branch is deployed to its own isolated sub-page.
main
Enhancement
responsive-ui
⚙️ How Git Multi-Branch Deployment Works
🏠 Main Branch Index
Commits pushed to main update the root URL (/). This serves the production index of CosyUI with full interactive game logic, LLM client, and player views.
🌿 Branch Sub-Pages
Every feature, bugfix, or enhancement branch (e.g. Enhancement) is extracted into its own subfolder (/branch-name/). Assets and modules resolve relatively without collision.
🔀 Built-in Switcher Widget
Every deployed page contains an interactive branch switcher widget in the header and a notification banner on subpages, allowing instant 1-click navigation between branches.
🤖 Continuous GitHub Actions
GitHub Actions automatically triggers a rebuild on every git push to any branch, guaranteeing subpages stay in sync with the latest commits.