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:
parent
c5149ec42c
commit
460019e01b
1 changed files with 6 additions and 14 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue