Skip to content

Commit

Permalink
cleaning up unused todos url variables
Browse files Browse the repository at this point in the history
  • Loading branch information
adlk committed Dec 19, 2024
1 parent 8b775b8 commit 143923e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ export const LIVE_API_WEBSITE = 'https://meetfranz.com';

export const STATS_API = 'https://stats.franzinfra.com';

export const LOCAL_TODOS_FRONTEND_URL = 'http://localhost:4000';
export const PRODUCTION_TODOS_FRONTEND_URL = 'https://app.franztodos.com';
export const DEVELOPMENT_TODOS_FRONTEND_URL = 'https://development--franz-todos.netlify.com';

export const CDN_URL = 'https://cdn.franzinfra.com';

export const GA_ID_DEV = 'UA-74126766-12';
Expand Down
8 changes: 0 additions & 8 deletions src/environment.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import {
DEV_API,
DEV_API_WEBSITE,
DEVELOPMENT_TODOS_FRONTEND_URL,
GA_ID_DEV,
GA_ID_PROD,
LIVE_API,
LIVE_API_WEBSITE,
LOCAL_API,
LOCAL_API_WEBSITE,
LOCAL_TODOS_FRONTEND_URL,
PRODUCTION_TODOS_FRONTEND_URL,
} from './config';

const { app } = process.type === 'renderer' ? require('@electron/remote') : require('electron');
Expand All @@ -32,26 +29,21 @@ export const cmdKey = isMac ? 'Cmd' : 'Ctrl';

let api;
let web;
let todos;
if (!isDevMode || (isDevMode && useLiveAPI)) {
api = LIVE_API;
// api = DEV_API;
web = LIVE_API_WEBSITE;
// web = DEV_API_WEBSITE;
todos = PRODUCTION_TODOS_FRONTEND_URL;
} else if (isDevMode && useLocalAPI) {
api = LOCAL_API;
web = LOCAL_API_WEBSITE;
todos = LOCAL_TODOS_FRONTEND_URL;
} else {
api = DEV_API;
web = DEV_API_WEBSITE;
todos = DEVELOPMENT_TODOS_FRONTEND_URL;
}

export const API = api;
export const API_VERSION = 'v1';
export const WEBSITE = web;
export const TODOS_FRONTEND = todos;

export const GA_ID = !isDevMode ? GA_ID_PROD : GA_ID_DEV;

0 comments on commit 143923e

Please sign in to comment.