From 2e0b29ed704c2376e4e058f8e301b1159336825e Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 6 Apr 2022 19:40:40 +0900 Subject: [PATCH] Add "release" configuration for BACKEND_URL --- front_end/src/constants.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/front_end/src/constants.rs b/front_end/src/constants.rs index 1c813a8..dcac6ea 100644 --- a/front_end/src/constants.rs +++ b/front_end/src/constants.rs @@ -15,4 +15,8 @@ pub const PLAYER_CLEANUP_TIMEOUT: u64 = 300; pub const BACKEND_TICK_DURATION_MILLIS: i32 = 500; // TODO: Change this to "https://asdm.seodisparate.com/api" when backend is installed +#[cfg(debug_assertions)] pub const BACKEND_URL: &str = "http://testlocalhost/api"; + +#[cfg(not(debug_assertions))] +pub const BACKEND_URL: &str = "https://asdm.seodisparate.com/api";