0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-06 06:18:32 -05:00

🐛 Minor fix on build params.

This commit is contained in:
Andrey Antukh 2020-02-04 22:04:22 +01:00
parent c5149ec42c
commit 460019e01b

View file

@ -29,20 +29,12 @@
;; --- Generic Build Options ;; --- Generic Build Options
(def closure-defines (def closure-defines
(let [url (-> (:uxbox-api-url env "http://127.0.0.1:6060") (let [url (some-> (:uxbox-api-url env)
(str/trim)) (str/trim))
demo-warn (-> (:uxbox-demo-warning env "") demo-warn (some-> (:uxbox-demo-warning env)
(str/trim))] (str/trim))]
{'uxbox.config.url {'uxbox.config.url (if (nil? url) "http://localhost:6060" url)
(cond 'uxbox.config.demo-warning (= "true" demo-warn)}))
(empty? url) "http://localhost:6060"
(str/starts-with? url "http") url
(str/starts-with? url "\"") (edn/read-string url))
'uxbox.config.demo-warning
(cond
(empty? demo-warn) false
(= "true" demo-warn) true
:else false)}))
(def default-build-options (def default-build-options
{:cache-analysis true {:cache-analysis true