From 4fe36be43c94f5b56e16968b1c1fdc36fc135c86 Mon Sep 17 00:00:00 2001 From: LUIS NOVO Date: Wed, 14 Jan 2026 13:02:33 -0300 Subject: [PATCH] docs: update CLAUDE.md files for Next.js 16 upgrade MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update root CLAUDE.md: Next.js 15 → 16 - Update frontend/src/CLAUDE.md: middleware.ts → proxy.ts --- CLAUDE.md | 2 +- frontend/src/CLAUDE.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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