diff --git a/.env.example b/.env.example index 645d9eee..c120d923 100644 --- a/.env.example +++ b/.env.example @@ -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 \ No newline at end of file diff --git a/src/constants/api-params.ts b/src/constants/api-params.ts index eff27b5e..284fea84 100644 --- a/src/constants/api-params.ts +++ b/src/constants/api-params.ts @@ -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"; diff --git a/src/constants/supabase.ts b/src/constants/supabase.ts index 06479f7d..1fd66db8 100644 --- a/src/constants/supabase.ts +++ b/src/constants/supabase.ts @@ -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 {