Skip to content

Commit

Permalink
Fix env var name for supabase key
Browse files Browse the repository at this point in the history
Corresponding to the name existing in `.env.example`
  • Loading branch information
farnoux committed Jan 20, 2025
1 parent 9ebc968 commit 6bcd6eb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions api_tests/lib/supabase.ts
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,
},
},
}
);

0 comments on commit 6bcd6eb

Please sign in to comment.