[FA-18] Adjustments based on feeback
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user