-
-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to specify and access environment variables #685
Comments
Your going to want to direct this question to the Clojurians slack. Sign up: Channels of interest to this topic: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I understand Figwheel allows me to specify different builds. (Perhaps another way to think of them is as environments?)
Based on the build/environment, I may require a different behavior in my code. For example, when in dev, I connect to a certain API endpoint, and in prod it's a different endpoint. Ideally, I would like some way (presumably this belongs in project.clj) of specifying environment specific variables, and then access them in my cljs code.
Is there a mechanism to do this?
I'm picturing something like this:
And then in my cljs code I would like to access them somehow. If it matters, I am running a Reagent project.
The text was updated successfully, but these errors were encountered: