From da7600c2cfc8a2b45fa8af8f6d740d9da264a6a6 Mon Sep 17 00:00:00 2001 From: Tariq Soliman Date: Tue, 24 Sep 2024 11:47:10 -0700 Subject: [PATCH] Use ROOT_PATH for configure-beta paths --- configure/src/core/constants.js | 6 ++-- configure/src/core/routes/routes.js | 45 ----------------------------- 2 files changed, 4 insertions(+), 47 deletions(-) diff --git a/configure/src/core/constants.js b/configure/src/core/constants.js index 136f765b..310df1f9 100644 --- a/configure/src/core/constants.js +++ b/configure/src/core/constants.js @@ -1,5 +1,7 @@ -export const publicUrl = - /*process.env.REACT_APP_PUBLIC_URL ||*/ "configure-beta"; +export const publicUrl = `${(window.mmgisglobal.ROOT_PATH || "").replace( + /^\/|\/$/g, + "" +)}/configure-beta`; export const endpoints = {}; diff --git a/configure/src/core/routes/routes.js b/configure/src/core/routes/routes.js index 8d38a290..1c2b8722 100644 --- a/configure/src/core/routes/routes.js +++ b/configure/src/core/routes/routes.js @@ -23,51 +23,6 @@ export const Routings = () => { } /> - {/* - { - return ( -
- -
- ) - }} - /> - { - return ( -
- -
- ) - }} - /> - { - return ( -
- -
- ) - }} - /> - { - return ( -
- -
- ) - }} - /> - */}