Skip to content

Hotfix: Use HashRouter for GitHub Pages#2

Merged
AH316 merged 1 commit into
mainfrom
hotfix/hash-router-github-pages
Oct 15, 2025
Merged

Hotfix: Use HashRouter for GitHub Pages#2
AH316 merged 1 commit into
mainfrom
hotfix/hash-router-github-pages

Conversation

@AH316

@AH316 AH316 commented Oct 15, 2025

Copy link
Copy Markdown
Owner

Problem

Deployed site shows blank gradient - routing is broken on GitHub Pages.

Root Cause

Main branch still has BrowserRouter which doesn't work with GitHub Pages client-side routing.

Solution

  • Changed BrowserRouter to HashRouter in src/App.tsx
  • This enables client-side routing to work on GitHub Pages
  • Also adds missing EditEntryPage route

Testing

  • ✅ Local preview server works correctly
  • ✅ HashRouter is already documented in CLAUDE.md
  • ✅ vite.config.ts already configured with base: './'

Impact

Critical hotfix - site is currently non-functional in production

🤖 Generated with Claude Code

- Changed from BrowserRouter to HashRouter
- Required for GitHub Pages deployment (client-side routing)
- Prevents blank page on deployed site
- Fixes root path routing issue

Critical hotfix for v0.0.1 deployment
@AH316 AH316 force-pushed the hotfix/hash-router-github-pages branch from f84f591 to 0d01da5 Compare October 15, 2025 00:13
@AH316 AH316 merged commit 2308348 into main Oct 15, 2025
2 checks passed
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.

1 participant