From a7d280ce7f53785d4232ba44fed330f53141849d Mon Sep 17 00:00:00 2001 From: Safi-ur-Rehman Date: Tue, 15 Oct 2024 14:09:55 +0500 Subject: [PATCH] chore: updated .env.example --- .env.example | 5 +---- src/constants/api-params.ts | 2 ++ src/constants/supabase.ts | 8 +++++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.env.example b/.env.example index 645d9eee8..c120d923b 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 eff27b5e9..284fea849 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 06479f7d6..1fd66db8b 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 {