import DeployButton from "@/components/DeployButton"; import AuthButton from "@/components/AuthButton"; import { createClient } from "@/utils/supabase/server"; import FetchDataSteps from "@/components/tutorial/FetchDataSteps"; import Header from "@/components/Header"; import { redirect } from "next/navigation"; export default async function ProtectedPage() { const supabase = createClient(); const { data: { user }, } = await supabase.auth.getUser(); if (!user) { return redirect("/login"); } return (
This is a protected page that you can only see as an authenticated user

Next steps

); }