26 lines
576 B
TypeScript
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>
|
|
</>
|
|
);
|
|
}
|