Skip to content

Commit 841507c

Browse files
committed
s
1 parent 12e886a commit 841507c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/app/lib/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { supabase } from '../../config/database'; // Importando o cliente Supabase
1+
import supabase from '../../config/database'; // Importando o cliente Supabase
22

33
// Obter todos os posts
44
export const getPosts = async () => {

src/config/database.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ import { createClient } from '@supabase/supabase-js';
44
const SUPABASE_URL = process.env.SUPABASE_URL; // URL da sua instância do Supabase
55
const SUPABASE_ANON_KEY = process.env.SUPABASE_KEY; // Chave pública anônima (encontrada no painel do Supabase)
66

7-
export const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY);
7+
const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY);
8+
export default supabase

0 commit comments

Comments
 (0)