app-routing
/app-routing
Prowadzi przez dodawanie routingu po stronie klienta (React Router) w aplikacjach Fusebase Apps, naprawę błędnych tras i 404 po wdrożeniu oraz konfigurację routera.
- Autor
- fusebase-dev ↗
- Repozytorium
- fusebase-flow ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 19.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 3
Brak sygnałów. Repozytorium zmienione 19.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Prowadzi przez dodawanie routingu po stronie klienta (React Router) w aplikacjach Fusebase Apps, naprawę błędnych tras i 404 po wdrożeniu oraz konfigurację routera.
Oryginalny opis (EN)
Guide for implementing client-side routing in Fusebase Apps apps. Use when: 1. Adding routing (React Router) to an app, 2. Fixing broken routes or 404s after deployment, 3. Configuring the router.
Jak działa
- Path-Based Routing
- Common Pitfalls
Podgląd SKILL.md
---
name: app-routing
description: "Guide for implementing client-side routing in Fusebase Apps apps. Use when: 1. Adding routing (React Router) to an app, 2. Fixing broken routes or 404s after deployment, 3. Configuring the router."
---
# App Routing
Fusebase Apps apps are each served from their own **subdomain root**:
```
https://{app-subdomain}.{FUSEBASE_APP_HOST}/
```
Read `FUSEBASE_APP_HOST` from the project `.env` when constructing app URLs. The app always owns the full path space from `/`.
> **IMPORTANT: Always use path-based routing (`BrowserRouter`). Hash-based routing (`HashRouter`) is forbidden** — hash fragments are stripped during redirects (e.g. OAuth, SSO), causing users to lose their navigation state.
## Path-Based Routing
Routes work as normal from root:
```
https://my-app.{FUSEBASE_APP_HOST}/settings
https://my-app.{FUSEBASE_APP_HOST}/users/42
```
### Configure the router
```tsx
import { BrowserRouter, Routes, Route } from 'react-router-dom'
function App() {
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/settings" element={<Settings />} />
</Routes>
</BrowserRouter>
)
}
```
## Common Pitfalls
1. **Using `HashRouter`** — Forbidden. Hash fragments are dropped on redirects, breaking navigation after OAuth or SSO flows.
2. **Hardcoded absolute paths** — Use React Router's `<Link>` component, not raw `<a href="/settings">`.
3. **Defining routes under `/api`** — The `/api` prefix is reserved for the backend when an app has one. Never create SPA routes under `/api/*`. See skill **app-backend**.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · fusebase-dev/fusebase-flow | 100 | MIT |
| ryan-haver/fusebase-mcp | 100 | MIT |
Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 13.11.2026 · wersja paczki 57e49719b5c8 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 95fusebase-cli
Prowadzi przez CLI Fusebase: inicjalizację projektu aplikacji, konfigurację, uruchamianie lokalne, wdrożenie i uprawnienia do dashboardów. - 95fusebase-cli
Obsługuje CLI Fusebase do tworzenia, uruchamiania i wdrażania aplikacji Fusebase oraz ustawiania uprawnień dashboardów. - 100client-side-routing-navigation
Pomaga w routingu SPA w React Router: zagnieżdżone układy, loadery tras i zarządzanie historią przeglądarki. - 100react-router
Opisuje React Router v6+ do routingu po stronie klienta: BrowserRouter, Routes, nawigacja, ładowanie danych, zagnieżdżone i chronione trasy oraz code splitting. - 100react-tanstack-router
Wdraża routing w aplikacji React z TanStack Router: trasy plikowe, loadery i parametry wyszukiwania, poza Next.js. - 81Next.js
Doradza w Next.js: App Router, Server Components, routing, pobieranie danych, API routes, middleware i wdrożenie, przy budowie aplikacji Next.js i funkcji opartych na React Server Components.