From 99fcd3556ea167e09031d4c7094005beaf6b8c53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Tue, 5 Nov 2024 13:21:30 +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 ab026e5fd2..eec5ba5aa8 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 bb9e23acaa..65ccbc9c15 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 b4684d58d2..991e17d7eb 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))))