Making progress on rewrite. Recreating queries and hooks now.

This commit is contained in:
2025-06-24 15:56:44 -05:00
parent 13cf089870
commit fbb24185df
13 changed files with 840 additions and 34 deletions

View File

@@ -1,13 +1,12 @@
'use client';
import { createBrowserClient } from '@supabase/ssr';
import type { Database } from '@/utils/supabase/database.types';
import type { SupabaseClient } from '@/utils/supabase/types';
import type { Database, SupabaseClient } from '@/utils/supabase';
import { useMemo } from 'react';
let client: SupabaseClient | undefined;
const getSupbaseClient = () => {
const getSupbaseClient = (): SupabaseClient | undefined => {
if (client) return client;
client = createBrowserClient<Database>(
process.env.NEXT_PUBLIC_SUPABASE_URL!,