From 0540c3bbbdfef4b1dfabe8b93b35496b2fe3eeef Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 11 Oct 2020 17:37:38 +0300 Subject: [PATCH] Add an option for changing the default API URL during the build Merge #130 again. It was accidentally removed when we merged to Etebase. --- src/constants/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants/index.ts b/src/constants/index.ts index 19dbe61..7730c90 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: AGPL-3.0-only export const appName = "EteSync"; -export const defaultServerUrl = "https://api.etebase.com/partner/etesync/"; +export const defaultServerUrl = process.env.REACT_APP_DEFAULT_API_PATH ?? "https://api.etebase.com/partner/etesync/"; export const homePage = "https://www.etesync.com/"; export const faq = homePage + "faq/"; export const sourceCode = "https://github.com/etesync/etesync-web";