mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 02:51:40 +02:00
🔧 Improve flags documentation (#5863)
* 📎 Fix typo * 🔧 Enable certain flags by default * 🔧 Compile all flags in a single source of truth * 📎 Move all default flags to common --------- Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
parent
6a5538bb15
commit
807b8d82e3
4 changed files with 137 additions and 21 deletions
|
@ -228,19 +228,9 @@
|
|||
[:objects-storage-s3-endpoint {:optional true} ::sm/uri]
|
||||
[:objects-storage-s3-io-threads {:optional true} ::sm/int]]))
|
||||
|
||||
(def default-flags
|
||||
[:enable-backend-api-doc
|
||||
:enable-backend-openapi-doc
|
||||
:enable-backend-worker
|
||||
:enable-secure-session-cookies
|
||||
:enable-email-verification
|
||||
:enable-v2-migration])
|
||||
|
||||
(defn- parse-flags
|
||||
[config]
|
||||
(flags/parse flags/default
|
||||
default-flags
|
||||
(:flags config)))
|
||||
(flags/parse flags/default (:flags config)))
|
||||
|
||||
(defn read-env
|
||||
[prefix]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue