first commit
This commit is contained in:
13
lib/supabase/client.ts
Normal file
13
lib/supabase/client.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { createClient } from '@supabase/supabase-js';
|
||||
|
||||
const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;
|
||||
const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY;
|
||||
|
||||
if (!supabaseUrl || !supabaseKey) {
|
||||
console.warn("⚠️ Supabase: Faltan las variables de entorno en .env.local");
|
||||
}
|
||||
|
||||
export const supabase = createClient(
|
||||
supabaseUrl || 'https://placeholder.supabase.co',
|
||||
supabaseKey || 'placeholder'
|
||||
);
|
||||
0
lib/supabase/middleware.ts
Normal file
0
lib/supabase/middleware.ts
Normal file
0
lib/supabase/server.ts
Normal file
0
lib/supabase/server.ts
Normal file
6
lib/utils.ts
Normal file
6
lib/utils.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { clsx, type ClassValue } from "clsx";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
Reference in New Issue
Block a user