Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 6b559bc

Browse files
chore: set prod links
1 parent 38602a7 commit 6b559bc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/renderer/lib/config.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
export const APP_URL = 'https://app-staging.codiga.io';
2-
export const API_ROOT_URL = 'https://api-staging.codiga.io';
1+
const isProd = process.env.NODE_ENV === 'production';
2+
export const APP_URL = isProd
3+
? 'https://app.codiga.io'
4+
: 'https://app-staging.codiga.io';
5+
export const API_ROOT_URL = isProd
6+
? 'https://api.codiga.io'
7+
: 'https://api-staging.codiga.io';
38
export const API_URL = `${API_ROOT_URL}/graphql`;
49
export const TOKEN = 'electron-token';
510
export const CODIGA_THEME = 'codiga-ui-mode';

0 commit comments

Comments
 (0)