Skip to content

Commit

Permalink
Merge pull request #11 from Safe-Deal/9-remove-non-secret-form-env-file
Browse files Browse the repository at this point in the history
chore: updated .env.example
  • Loading branch information
obender authored Oct 17, 2024
2 parents db72932 + a7d280c commit 2ec3f47
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@ SCRAPFLY_API_KEY= #YOUR SCRAPIFY KEY HERE
SUPABASE_URL= #YOUR SUPABASE PROJECT URL HERE
SUPABASE_ANON_KEY= #YOUR SUPABASE ANON KEY HERE
GOOGLE_TRANSLATE_API_KEY= #YOUR GOOGLE TRANSLATE API KEY HERE
AUTH_API_KEY= #YOUR AUTH API KEY HERE
API_URL= #YOUR API ENDPOINT HERE
LISTS_URL= #YOUR LISTS URL HERE
EXTENSION_AUTH_PATH= #YOUR AUHT ENDPOINT HERE
AUTH_API_KEY= #YOUR AUTH API KEY HERE
2 changes: 2 additions & 0 deletions src/constants/api-params.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export const API_URL = "https://api.joinsafedeal.com";
export const LISTS_URL = "https://joinsafedeal.com/lists";
export const EXTENSION_AUTH_PATH = "https://www.joinsafedeal.com/accounts/authorize/extension";
8 changes: 5 additions & 3 deletions src/constants/supabase.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { API_URL, EXTENSION_AUTH_PATH, LISTS_URL } from "./api-params";

export const SUPABASE = Object.freeze({
SUPABASE_URL: process.env.SUPABASE_URL,
SUPABASE_ANON_KEY: process.env.SUPABASE_ANON_KEY,
EXTENSION_AUTH_PATH: process.env.EXTENSION_AUTH_PATH,
EXTENSION_API_PATH: process.env.API_URL,
LISTS_PAGE_PATH: process.env.LISTS_URL
EXTENSION_AUTH_PATH: EXTENSION_AUTH_PATH,
EXTENSION_API_PATH: API_URL,
LISTS_PAGE_PATH: LISTS_URL
});

export enum SupabaseAuthEvents {
Expand Down

0 comments on commit 2ec3f47

Please sign in to comment.