0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

🚧 More work on build config.

This commit is contained in:
Andrey Antukh 2020-03-12 09:28:40 +01:00
parent b26480ba6e
commit 8fac45e60a
2 changed files with 3 additions and 8 deletions

View file

@ -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))

View file

@ -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
}