From 8fac45e60a785f154ee571fa032c3a972be8e776 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 12 Mar 2020 09:28:40 +0100 Subject: [PATCH] :construction: More work on build config. --- frontend/src/uxbox/config.cljs | 9 ++------- manage.sh | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/frontend/src/uxbox/config.cljs b/frontend/src/uxbox/config.cljs index ce37abdb1d..1e93bdd690 100644 --- a/frontend/src/uxbox/config.cljs +++ b/frontend/src/uxbox/config.cljs @@ -16,13 +16,8 @@ (gobj/get location "origin"))) (let [config (gobj/get goog.global "uxboxConfig") - backend-url (gobj/get config "backendURL" "http://localhost:6060")] + public-url (gobj/get config "publicURL" "http://localhost:6060")] (def default-language "en") (def demo-warning (gobj/get config "demoWarning" true)) - - (def url - (if (= backend-url "samesite") - (get-current-origin) - backend-url))) - + (def url public-url)) diff --git a/manage.sh b/manage.sh index 7d43b6bf26..4dcba56c83 100755 --- a/manage.sh +++ b/manage.sh @@ -55,7 +55,7 @@ function build-frontend { --mount source=`pwd`,type=bind,target=/home/uxbox/uxbox \ --mount source=${HOME}/.m2,type=bind,target=/home/uxbox/.m2 \ -w /home/uxbox/uxbox/frontend \ - -e UXBOX_BACKEND_URL=${UXBOX_BACKEND_URL} \ + -e UXBOX_PUBLIC_URL=${UXBOX_PUBLIC_URL} \ -e UXBOX_DEMO_WARNING=${UXBOX_DEMO_WARNING} \ $IMAGE ./scripts/build-app.sh }