From 040a94f7198f3fdac6f422190a5d762be483e2ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Tue, 5 Nov 2024 13:16:56 +0100 Subject: [PATCH] :wrench: Disable tokens in dev env by default --- backend/scripts/repl | 3 +-- backend/scripts/start-dev | 3 +-- frontend/src/app/main/features.cljs | 4 +++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/scripts/repl b/backend/scripts/repl index d5c2bd166..7170dbee4 100755 --- a/backend/scripts/repl +++ b/backend/scripts/repl @@ -30,8 +30,7 @@ export PENPOT_FLAGS="\ enable-access-tokens \ enable-tiered-file-data-storage \ enable-file-validation \ - enable-file-schema-validation \ - disable-feature-design-tokens"; + enable-file-schema-validation"; # Default deletion delay for devenv export PENPOT_DELETION_DELAY="24h" diff --git a/backend/scripts/start-dev b/backend/scripts/start-dev index bb9e23aca..65ccbc9c1 100755 --- a/backend/scripts/start-dev +++ b/backend/scripts/start-dev @@ -22,8 +22,7 @@ export PENPOT_FLAGS="\ enable-access-tokens \ enable-tiered-file-data-storage \ enable-file-validation \ - enable-file-schema-validation \ - disable-feature-design-tokens"; + enable-file-schema-validation"; export OPTIONS=" -A:jmx-remote -A:dev \ diff --git a/frontend/src/app/main/features.cljs b/frontend/src/app/main/features.cljs index 477a58a75..fe58d8248 100644 --- a/frontend/src/app/main/features.cljs +++ b/frontend/src/app/main/features.cljs @@ -110,7 +110,9 @@ (when *assert* (->> (rx/from cfeat/no-migration-features) ;; text editor v2 isn't enabled by default even in devenv - (rx/filter #(not (or (contains? cfeat/backend-only-features %) (= "text-editor/v2" %)))) + (rx/filter #(not (or (contains? cfeat/backend-only-features %) + (= "text-editor/v2" %) + (= "design-tokens/v1" %)))) (rx/observe-on :async) (rx/map enable-feature))))