Skip to content

Got 404 page on gh-page deployment #19615

Answered by hi-ogawa
dotku asked this question in Q&A
Discussion options

You must be logged in to vote

You likely need to set basename https://reactrouter.com/6.30.0/routers/create-browser-router#optsbasename when deploying react router app under sub path like basename: '/deepseek-solutions' similarly to how you already do for Vite base option https://github.com/dotku/deepseek-solutions/blob/a9f8a8f82547664e68151a67ecb8c41990bb5a99/vite.config.ts#L6.

I'd suggest asking on react-router community for further react router specific issues https://github.com/remix-run/react-router/discussions

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dotku
Comment options

Answer selected by dotku
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #19614 on March 10, 2025 05:19.