mirror of
https://github.com/penpot/penpot.git
synced 2026-04-29 13:18:29 +00:00
📎 Explicitly disable features on code
This commit is contained in:
parent
c1a1120137
commit
a4acdd1886
@ -37,6 +37,7 @@
|
||||
(when (= :browser @cf/target)
|
||||
(log/info :message "Welcome to penpot"
|
||||
:version (:full @cf/version)
|
||||
:asserts *assert*
|
||||
:build-date cf/build-date
|
||||
:public-uri (str @cf/public-uri)))
|
||||
|
||||
|
||||
@ -65,11 +65,15 @@
|
||||
;; Read initial enabled features from config, if set
|
||||
(if-let [enabled-features @cfg/features]
|
||||
(doseq [f enabled-features]
|
||||
(js/console.log "enabled feature" (pr-str f))
|
||||
(toggle-feature! f))
|
||||
(when *assert*
|
||||
(when false
|
||||
;; By default, all features disabled, except in development
|
||||
;; environment, that are enabled except components-v2
|
||||
;; (js/console.log "!!! *assert*" *assert*)
|
||||
|
||||
(doseq [f features-list]
|
||||
(when (not= f :components-v2)
|
||||
;; (js/console.log "enabled feature" (pr-str f))
|
||||
(toggle-feature! f)))))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user