fix(mobile): check log doesn't collect records in release mode

This commit is contained in:
Tienson Qin
2025-09-12 00:55:55 +08:00
parent b14735a0a8
commit bef51482ad

View File

@@ -139,9 +139,15 @@
:redef false}}
:build-hooks [(shadow.hooks/git-revision-hook "--long --always --dirty")]
:closure-defines
{;; Set to switch file sync server to dev, set this to false in `yarn watch`
{lambdaisland.glogi.console/colorize "false"
goog.debug.LOGGING_ENABLED true
frontend.modules.instrumentation.sentry/SENTRY-DSN #shadow/env "LOGSEQ_SENTRY_DSN"
frontend.modules.instrumentation.posthog/POSTHOG-TOKEN #shadow/env "LOGSEQ_POSTHOG_TOKEN"
;; frontend.config/ENABLE-PLUGINS #shadow/env ["ENABLE_PLUGINS" :as :bool :default true]
;; Set to switch file sync server to dev, set this to false in `yarn watch`
frontend.config/ENABLE-FILE-SYNC-PRODUCTION #shadow/env ["ENABLE_FILE_SYNC_PRODUCTION" :as :bool :default true]
frontend.config/ENABLE-RTC-SYNC-PRODUCTION #shadow/env ["ENABLE_RTC_SYNC_PRODUCTION" :as :bool :default true]}
frontend.config/ENABLE-RTC-SYNC-PRODUCTION #shadow/env ["ENABLE_RTC_SYNC_PRODUCTION" :as :bool :default true]
frontend.config/REVISION #shadow/env ["LOGSEQ_REVISION" :default "dev"]}
:devtools {:before-load mobile.core/stop! ;; before live-reloading any code call this function
:after-load mobile.core/render! ;; after live-reloading finishes call this function