1
0
mirror of https://github.com/D4M13N-D3V/neroshitron.git synced 2025-03-14 10:05:04 +00:00

20 lines
493 B
TypeScript
Raw Permalink Normal View History

2024-05-24 17:57:03 -04:00
import { createClient } from "@/utils/supabase/server";
2024-05-26 02:14:59 -04:00
import { redirect } from "next/navigation";
2024-05-24 17:57:03 -04:00
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();
2024-05-26 02:14:59 -04:00
return redirect("/gallery")
2024-05-24 17:57:03 -04:00
}