neroshitron/app/page.tsx
2024-05-26 02:14:59 -04:00

20 lines
493 B
TypeScript

import { createClient } from "@/utils/supabase/server";
import { redirect } from "next/navigation";
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 redirect("/gallery")
}