This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-09
Channels
- # beginners (41)
- # boot (4)
- # cider (36)
- # cljsrn (9)
- # clojure (365)
- # clojure-dev (1)
- # clojure-dusseldorf (1)
- # clojure-nl (1)
- # clojure-russia (3)
- # clojure-spain (1)
- # clojure-spec (19)
- # clojure-uk (1)
- # clojurescript (159)
- # code-reviews (7)
- # core-async (51)
- # cursive (2)
- # datascript (1)
- # datomic (1)
- # emacs (5)
- # figwheel (3)
- # hoplon (18)
- # incanter (1)
- # lein-figwheel (1)
- # leiningen (3)
- # lumo (145)
- # off-topic (26)
- # onyx (21)
- # re-frame (2)
- # reagent (45)
- # rum (4)
- # uncomplicate (10)
- # untangled (23)
- # yada (6)
How do you handle different profile variables in cljsrn? For example, I’d like the base url of all my requests to be localhost when I run my dev profile, but would like them to use a real url when building with-profile prod. In clojure I’d use environ but that doesn’t seem to work in the clojurescript and cljsrn world, so how’s it done?
@andrewboltachev try react-native-fingerprint-android/FingerprintAndroid
or react-native-fingerprint-android/FingerprintAndroid.-default
https://github.com/jariz/react-native-fingerprint-android/blob/master/index.android.js#L68
thanks @misha !
@etherfuse We’re using https://github.com/adzerk-oss/env (since we’re using boot)
Or use standard compiler defines https://github.com/clojure/clojurescript/wiki/Compiler-Options#closure-defines