From b241385e784147f2377ba9034cfe3fadaaf2536f Mon Sep 17 00:00:00 2001 From: titix Date: Tue, 10 Sep 2024 15:27:23 -0300 Subject: [PATCH] style: remove testing mode var --- cypress/cypress.env.json | 3 +-- src/config/env.ts | 2 -- src/types/Config.ts | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/cypress/cypress.env.json b/cypress/cypress.env.json index f45bb1d..ac9e827 100644 --- a/cypress/cypress.env.json +++ b/cypress/cypress.env.json @@ -1,4 +1,3 @@ { - "NEXT_PUBLIC_API_BASE_URL": "http://mock-api:3000", - "NEXT_PUBLIC_TESTING_MODE": "true" + "NEXT_PUBLIC_API_BASE_URL": "http://mock-api:3000" } diff --git a/src/config/env.ts b/src/config/env.ts index 9946606..5aee8c3 100644 --- a/src/config/env.ts +++ b/src/config/env.ts @@ -4,12 +4,10 @@ export const getEnv = (): Env => { const NEXT_PUBLIC_PROJECT_ID = process.env.NEXT_PUBLIC_PROJECT_ID; const NEXT_PUBLIC_API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL; const NEXT_PUBLIC_TESTNET_MODE = process.env.NEXT_PUBLIC_TESTNET_MODE; - const NEXT_PUBLIC_TESTING_MODE = process.env.NEXT_PUBLIC_TESTING_MODE; return { PROJECT_ID: NEXT_PUBLIC_PROJECT_ID as string, API_URL: NEXT_PUBLIC_API_BASE_URL as string, TESTNET_MODE: NEXT_PUBLIC_TESTNET_MODE as string, - TESTING_MODE: NEXT_PUBLIC_TESTING_MODE as string, }; }; diff --git a/src/types/Config.ts b/src/types/Config.ts index b13339a..876e3b1 100644 --- a/src/types/Config.ts +++ b/src/types/Config.ts @@ -2,7 +2,6 @@ export interface Env { PROJECT_ID: string; API_URL: string; TESTNET_MODE: string; - TESTING_MODE: string; } export type SupportedLanguage = 'en' | 'es';