Skip to content

Commit

Permalink
chore: remove .env & add it to .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
wisnie committed Oct 8, 2022
1 parent b3b038f commit 3a26bfe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion .env

This file was deleted.

2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SUPABASE_URL=
SUPABASE_KEY=
SUPABASE_KEY=
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files
.env

# local env files
.env*.local

Expand Down
4 changes: 1 addition & 3 deletions lib/supabase.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { createClient } from '@supabase/supabase-js';

const supabaseUrl = 'https://uxhxnpsugyqzlxgmfhin.supabase.co';
const supabaseKey = process.env.SUPABASE_KEY;
export const supabase = createClient(supabaseUrl, supabaseKey as string);
export const supabase = createClient(process.env.SUPABASE_KEY!, process.env.SUPABASE_KEY!);

0 comments on commit 3a26bfe

Please sign in to comment.