electrode-io / electrode-confippet

node.js environment aware application configuration
Other
108 stars 18 forks source link

Config values in React #10

Open LeeFrancis opened 7 years ago

LeeFrancis commented 7 years ago

Probably a stupid question but are you able to reference confippet config values in React code? hoping to keep all my dev url's defined in one place.

ananavati commented 7 years ago

@LeeFrancis

we are working on a module that will allow for accessing config variables in your React code.

Usage will be like this: config/production.json

{
  "ui": {
    "url1": "url1.com"
  }
}
m-torin commented 7 years ago

@ananavati has this been merged in yet?

thiagoneves commented 5 years ago

any news?

llwt commented 5 years ago

A little late in response, but there is an electrode-ui-config which I'm assuming is what @ananavati was hinting at.