Update theme & stuff
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
import 'server-only';
|
||||
import { createServerClient } from '@supabase/ssr';
|
||||
import type { Database, SupabaseClient } from '@/utils/supabase';
|
||||
import type { Database } from '@/utils/supabase';
|
||||
import { cookies } from 'next/headers';
|
||||
|
||||
export const useSupabaseServer = async (): Promise<SupabaseClient | undefined> => {
|
||||
export const SupabaseServer = async () => {
|
||||
const cookieStore = await cookies();
|
||||
return createServerClient<Database>(
|
||||
process.env.NEXT_PUBLIC_SUPABASE_URL!,
|
||||
|
Reference in New Issue
Block a user