-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change env var name for supabase key
Corresponding to the name existing in `.env.example`
- Loading branch information
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import "https://deno.land/x/dotenv/load.ts"; | ||
import { createClient } from "https://esm.sh/@supabase/[email protected]"; | ||
import { Database } from "./database.types.ts"; | ||
import 'https://deno.land/x/dotenv/load.ts'; | ||
import { createClient } from 'https://esm.sh/@supabase/[email protected]'; | ||
import { Database } from './database.types.ts'; | ||
|
||
/** | ||
* Supabase client | ||
*/ | ||
export const supabase = createClient<Database>( | ||
Deno.env.get("SUPABASE_URL")!, | ||
Deno.env.get("SUPABASE_KEY")!, | ||
Deno.env.get('SUPABASE_URL')!, | ||
Deno.env.get('SUPABASE_ANON_KEY')!, | ||
{ | ||
db: { | ||
schema: "public", | ||
schema: 'public', | ||
}, | ||
auth: { | ||
// Pour fonctionner avec deno hors du navigateur. | ||
persistSession: false, | ||
}, | ||
}, | ||
} | ||
); |