Skip to content

Commit

Permalink
style: remove testing mode var
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtiti committed Sep 10, 2024
1 parent 4221914 commit b241385
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions cypress/cypress.env.json
Original file line number Diff line number Diff line change
@@ -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"
}
2 changes: 0 additions & 2 deletions src/config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
};
1 change: 0 additions & 1 deletion src/types/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export interface Env {
PROJECT_ID: string;
API_URL: string;
TESTNET_MODE: string;
TESTING_MODE: string;
}

export type SupportedLanguage = 'en' | 'es';
Expand Down

0 comments on commit b241385

Please sign in to comment.