2024-05-24 17:57:03 -04:00
|
|
|
import { createClient } from "@/utils/supabase/server";
|
|
|
|
|
|
|
|
export default async function Index() {
|
|
|
|
const canInitSupabaseClient = () => {
|
|
|
|
// This function is just for the interactive tutorial.
|
|
|
|
// Feel free to remove it once you have Supabase connected.
|
|
|
|
try {
|
|
|
|
createClient();
|
|
|
|
return true;
|
|
|
|
} catch (e) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
const isSupabaseConnected = canInitSupabaseClient();
|
|
|
|
|
|
|
|
return (
|
2024-05-24 20:52:39 -04:00
|
|
|
<div className="flex-1 w-full flex flex-col gap-20 items-center animate-in">
|
2024-05-24 19:30:37 -04:00
|
|
|
<h1>This is unprotected.</h1>
|
2024-05-24 20:52:39 -04:00
|
|
|
</div>
|
|
|
|
// <div className="flex-1 w-full flex flex-col gap-20 items-center animate-in">
|
|
|
|
// </div>
|
2024-05-24 17:57:03 -04:00
|
|
|
);
|
|
|
|
}
|