Refactor auth session handling and server actions across app

- Overhaul `lib/auth/server.ts` and `lib/auth/session.ts`; update all API
  routes and server actions to use the revised session pattern
- Refactor server actions (settings, titles, watchlist, setup) for
  consistency with new auth layer
- Extract `SetupForm` into its own client component with `useActionState`,
  animated steps, and copyable env snippets
- Move landing page redirect logic into `app/page.tsx`; slim down
  `LandingPage` component
- Add `proxy.ts` for local dev proxying
- Minor cleanup to `NavBar`, `MobileTabBar`, and `TitleCard`
This commit is contained in:
2026-03-06 17:05:49 -05:00
parent 7a3052250d
commit 73b07f5ff6
34 changed files with 443 additions and 466 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import { fetcher } from "@/lib/swr/fetcher";
export function useSystemHealth() {
const { data, error, isLoading, isValidating, mutate } =
useSWR<SystemHealthData>("/api/admin/system-health", fetcher, {
revalidateOnFocus: true,
revalidateOnFocus: false,
dedupingInterval: 10_000,
});