docs: update CLAUDE.md files for Next.js 16 upgrade
- Update root CLAUDE.md: Next.js 15 → 16 - Update frontend/src/CLAUDE.md: middleware.ts → proxy.ts
This commit is contained in:
parent
136698864e
commit
4fe36be43c
2 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ User documentation is at @docs/
|
|||
## Tech Stack
|
||||
|
||||
### Frontend (`frontend/`)
|
||||
- **Framework**: Next.js 15 (React 19)
|
||||
- **Framework**: Next.js 16 (React 19)
|
||||
- **Language**: TypeScript
|
||||
- **State Management**: Zustand
|
||||
- **Data Fetching**: TanStack Query (React Query)
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ User interactions trigger mutations/queries via hooks, which communicate with th
|
|||
- **Auto-refetch**: `refetchOnWindowFocus: true` on frequently-changing data (sources, notebooks)
|
||||
|
||||
### Auth & Protected Routes
|
||||
- **Middleware** (`src/middleware.ts`): Redirects unauthenticated users to `/login`
|
||||
- **Proxy** (`src/proxy.ts`): Redirects root `/` to `/notebooks`
|
||||
- **Auth store**: Validates token via `/notebooks` API call (actual validation, not JWT decode)
|
||||
- **Interceptor**: Adds `Bearer {token}` to all requests; 401 response clears auth and redirects to login
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue