blob: c73c0320a222fcb1edff475ede06d68c7ca1a681 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { createSupabaseServerClient } from "@/lib/supabase/server"
import { redirect } from "next/navigation"
import { HighlightsContent } from "./_components/highlights-content"
export default async function HighlightsPage() {
const supabaseClient = await createSupabaseServerClient()
const {
data: { user },
} = await supabaseClient.auth.getUser()
if (!user) {
redirect("/")
}
return <HighlightsContent />
}
|