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:
LUIS NOVO 2026-01-14 13:02:33 -03:00
parent 136698864e
commit 4fe36be43c
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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