mirror of
https://github.com/penpot/penpot.git
synced 2026-02-25 22:04:14 +00:00
🚧 More work on build config.
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user