Files
personal-website/app/page.tsx
2024-01-14 19:01:27 +01:00

26 lines
576 B
TypeScript

import { createClient } from "@/utils/supabase/server";
import { cookies } from "next/headers";
export default async function Index() {
const cookieStore = cookies();
const canInitSupabaseClient = () => {
// This function is just for the interactive tutorial.
// Feel free to remove it once you have Supabase connected.
try {
createClient(cookieStore);
return true;
} catch (e) {
return false;
}
};
const isSupabaseConnected = canInitSupabaseClient();
return (
<>
<h1 className="text-xl">hello</h1>
</>
);
}