r/purescript • u/XtraKrispi42 • Feb 16 '19
Best practices for client side configuration
Quick question...
What are your preferences for getting environment specific config into your Purescript client side applications? I'm referring to things like API urls and logging levels, etc.
Assuming the app is hosted separately from the API, what's the best way to do this?
5
Upvotes
View all comments
Show parent comment
1
u/XtraKrispi42 Feb 16 '19
Ah, okay... Does that work for the browser though? Would it inject `process.env` on to the page so we can use FFI to grab the values?
This is the part that confuses me