diff --git a/CLAUDE.md b/CLAUDE.md index 11e7b4b..fde20d4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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) diff --git a/frontend/src/CLAUDE.md b/frontend/src/CLAUDE.md index 1d09ad5..c02e0fd 100644 --- a/frontend/src/CLAUDE.md +++ b/frontend/src/CLAUDE.md @@ -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