feat: add supabase

This commit is contained in:
Henry
2024-04-10 21:10:10 +01:00
parent 1711df03e7
commit b54cfe8f91
7 changed files with 869 additions and 0 deletions

View File

@@ -1,5 +1,11 @@
import { sql } from '@vercel/postgres'
import { drizzle } from 'drizzle-orm/vercel-postgres'
import { createClient } from '@supabase/supabase-js'
import { type Database } from "~/types/database.types";
const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;
const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;
export const supabase = createClient<Database>(supabaseUrl!, supabaseKey!);
import * as schema from "./schema";