🔧 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:
Yamila Moreno 2025-02-18 12:36:16 +01:00 committed by GitHub
parent 6a5538bb15
commit 807b8d82e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 137 additions and 21 deletions

View file

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