[FA-18] Adjustments based on feeback

This commit is contained in:
gamer147
2025-11-24 13:36:49 -05:00
parent e8596b67c4
commit fdf2ff7c1b
3 changed files with 30 additions and 11 deletions

View File

@@ -30,7 +30,7 @@ VITE_CODEGEN_TOKEN=your_api_token
## Project notes
- `src/apolloClient.ts` configures the Apollo client with `InMemoryCache` and reads `VITE_GRAPHQL_URI`.
- `src/apolloClient.ts` configures the Apollo client with `InMemoryCache`, reads `VITE_GRAPHQL_URI`, and attaches an `Authorization: Bearer` header when an OIDC user is present.
- GraphQL code generation is configured via `codegen.ts` (loads `.env`/`.env.local` automatically); run `npm run codegen` to emit typed hooks to `src/__generated__/graphql.ts` (ignored by git) or rely on the `prebuild` hook.
- Routing is handled in `src/App.tsx` with `react-router-dom`; `/` renders the novels listing and `/novels/:id` is stubbed for future detail pages.
- Styles live primarily in `src/index.css` alongside the shared UI components.