Skip to content

fix(frontend): add SPA rewrites so client routes deploy on Vercel - #565

Merged
thegreatfeez merged 1 commit into
Ac0rdP:mainfrom
Asta-wizard:fix/frontend-vercel-spa-rewrites
Sep 5, 2026
Merged

fix(frontend): add SPA rewrites so client routes deploy on Vercel#565
thegreatfeez merged 1 commit into
Ac0rdP:mainfrom
Asta-wizard:fix/frontend-vercel-spa-rewrites

Conversation

@Asta-wizard

Copy link
Copy Markdown
Contributor

The app uses BrowserRouter routes (/app, /docs, /proposals/:id), but the Vercel deployment has no SPA fallback, so direct loads and refreshes on those routes return Vercel's 404: NOT_FOUND page. Adds frontend/vercel.json rewriting all paths to /index.html (standard Vite SPA deployment config).

BrowserRouter routes (/app, /docs, /proposals/:id) returned Vercel's
404 page on direct load or refresh because there was no SPA fallback.
Add vercel.json rewrite to always serve index.html.
@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

@Asta-wizard is attempting to deploy a commit to the thegreatfeez's projects Team on Vercel.

A member of the Team first needs to authorize it.

@thegreatfeez
thegreatfeez merged commit 2f35168 into Ac0rdP:main Sep 5, 2026
2 of 4 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.

2 participants