TypeScript 61.9%
HTML 37.2%
SQL 0.7%
1import { redirect } from 'next/navigation';2import { getCurrentUser } from '@/lib/auth/session';34/** /account is the header's "Sign in" target: route to settings when signed in, else to login. */5export default async function AccountIndex() {6 const u = await getCurrentUser();7 redirect(u ? '/account/settings' : '/login?next=%2Faccount%2Fsettings');8}9