From ed6cf35be8a2296fbc665419d57561d3ddd41b69 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 26 Dec 2021 19:58:19 -0500 Subject: [PATCH] [O] Easier production switch --- src/scripts/constants.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scripts/constants.ts b/src/scripts/constants.ts index 1f835a1..a4b0cce 100644 --- a/src/scripts/constants.ts +++ b/src/scripts/constants.ts @@ -1,5 +1,6 @@ -// export const backendUrl = 'http://localhost:5000' +const production = true + export const hosts = { api: 'https://profile-api.hydev.org', - content: 'https://profile-content.hydev.org' + content: production ? 'https://profile-content.hydev.org' : 'http://localhost:8082' }