Skip to content

Commit

Permalink
automatically switch host on prod
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoerlitz committed Apr 11, 2024
1 parent 0ee9286 commit 3af4af1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/core/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ dayjs.extend(utc);
dayjs.extend(relativeTime);
dayjs.extend(duration);

const DEV_ENV = import.meta.env.MODE;

export const Config = {
VERSION: "0.0.1-Beta",
VATGER_BROWSER_TOKEN_NAME: "vatger_tc_browser_token",
VATGER_LOGIN_LANGUAGE_NAME: "vatger_login_language",

APP_HOST: "https://tc-dev.vatsim-germany.org",
API_BASE_URL: "https://tc-api-dev.vatsim-germany.org",
APP_HOST: DEV_ENV ? "http://localhost:8000" : "https://tc-dev.vatsim-germany.org",
API_BASE_URL: DEV_ENV ? "http://localhost:8001/api/v1" : "https://tc-dev.vatsim-germany.org/api/v1",
DATE_FORMAT: "DD.MM.YYYY",
DATETIME_FORMAT: "DD.MM.YYYY HH:mm",

Expand Down

0 comments on commit 3af4af1

Please sign in to comment.