export const dynamic = 'force-dynamic' import Link from 'next/link' import { createClient } from '@/lib/supabase/server' import { redirect } from 'next/navigation' export default async function SupervisorPage() { const supabase = await createClient() const { data: { user } } = await supabase.auth.getUser() if (!user) redirect('/login') const { data: profile } = await supabase.from('users').select('name').eq('id', user.id).single() return (

Supervisor Portal

Welcome, {profile?.name ?? user.email}

📋
Incident Inbox
View site incidents
) }