Skip to content

Commit 571c378

Browse files
committed
Utiliser une variable pour définir l'URL de la BDD
Cela nous permet d'utiliser plusieurs environnements.
1 parent 7250580 commit 571c378

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

server/utils/supabase.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import { createClient } from '@supabase/supabase-js'
2-
const supabase = createClient('https://ixxbyuandbmplfnqtxyw.supabase.co', process.env.SUPABASE_ADMIN_KEY, {
2+
const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_ADMIN_KEY, {
33
auth: { persistSession: false }
44
})
5-
// DEV
6-
// 'https://drncrjteathtblggsgxi.supabase.co'
7-
// PROD
8-
// 'https://ixxbyuandbmplfnqtxyw.supabase.co'
95
export default supabase

0 commit comments

Comments
 (0)