0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-06 12:01:19 -05:00

📎 Explicitly disable features on code

This commit is contained in:
Andrey Antukh 2022-12-01 08:56:23 +01:00
parent c1a1120137
commit a4acdd1886
2 changed files with 6 additions and 1 deletions

View file

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

View file

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