Fix infura token

Setting a top-level closure-defines does not have any effect,
it needs to be for some reason inside each environment.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
Andrea Maria Piana 2020-10-05 12:00:37 +02:00
parent 93ed3eb7ff
commit 966f6de31a
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,6 @@
{:target :react-native {:target :react-native
:output-dir "app" :output-dir "app"
:init-fn status-im.core/init :init-fn status-im.core/init
:closure-defines {"status-im.utils.config/INFURA_TOKEN" #shadow/env "INFURA_TOKEN"}
:dev {:devtools {:after-load status-im.reloader/reload :dev {:devtools {:after-load status-im.reloader/reload
:build-notify status-im.reloader/build-notify :build-notify status-im.reloader/build-notify
:preloads [re-frisk-remote.preload]} :preloads [re-frisk-remote.preload]}
@ -53,7 +52,8 @@
:local-ip #shadow/env "SHADOW_HOST"} :local-ip #shadow/env "SHADOW_HOST"}
:chunks {:fleets status-im.default-fleet/default-fleets :chunks {:fleets status-im.default-fleet/default-fleets
:chats status-im.chat.default-chats/default-chats} :chats status-im.chat.default-chats/default-chats}
:release {:compiler-options {:output-feature-set :es6 :release {:closure-defines {status-im.utils.config/INFURA_TOKEN #shadow/env "INFURA_TOKEN"}
:compiler-options {:output-feature-set :es6
;;disable for android build as there ;;disable for android build as there
;;is an intermittent warning with deftype ;;is an intermittent warning with deftype
:warnings-as-errors false :warnings-as-errors false
@ -70,8 +70,8 @@
{:output-to "target/test/test.js" {:output-to "target/test/test.js"
:output-dir "target/test" :output-dir "target/test"
:optimizations :simple :optimizations :simple
:closure-defines {status-im.utils.config/INFURA_TOKEN #shadow/env "INFURA_TOKEN"}
:target :node-test :target :node-test
:closure-defines {status-im.utils.config/INFURA_TOKEN #shadow/env "INFURA_TOKEN"}
:compiler-options {;; needed because we override require and it :compiler-options {;; needed because we override require and it
;; messes with source-map which reports callstack ;; messes with source-map which reports callstack
;; exceeded exceptions instead of real issues ;; exceeded exceptions instead of real issues