SPA Fallback (Single Page Apps)

If your site is a Single Page App (SPA) like React, Vue, Svelte, or Angular, direct visits to routes like /dashboard may return a 404 by default.

To fix this, open your project’s Static Page Settings in the RunxBuild dashboard and enable SPA Fallback. This will rewrite unknown routes to /index.html so your frontend router can handle navigation.

Example: SPA Fallback toggle

{ "On": true }

When to Use SPA Fallback

  • React Router applications
  • Vue Router applications
  • SvelteKit with client-side routing
  • Angular applications
  • Any framework with client-side navigation