Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
java:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
# The test report is published as a check run, which the read-only default token cannot create.
permissions:
contents: read
checks: write
strategy:
# One service failing should not hide the state of the other two.
fail-fast: false
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ import { RegisterPage } from './pages/RegisterPage'
export function App() {
return (
<AuthProvider>
<BrowserRouter>
{/*
The site is served from a subdirectory on GitHub Pages, so the router has to be told where
it starts. Without this every path arrives as /<repo>/books, matches no route, falls to the
catch-all and navigates to /books at the domain root - which really is a 404. BASE_URL is
'/' during development, so this is a no-op there.
*/}
<BrowserRouter basename={import.meta.env.BASE_URL}>
<Routes>
<Route path="/login" element={<LoginPage />} />
<Route path="/register" element={<RegisterPage />} />
Expand Down
Loading