eldoy / waveorb

Javascript web app development framework
https://waveorb.com
MIT License
5 stars 0 forks source link

Environment config file override #133

Open eldoy opened 1 year ago

eldoy commented 1 year ago

In this example I want to override the config for a script. What's the best solution to this?

For every API we can have a single file, or we can include the environment files as well in app.config.production.woo?

At the moment conficurse overwrites and merges, so the original config is not intact.

var { base, key, secret } = app.config.woo
  var auth = {
    consumer_key: key,
    consumer_secret: secret
  }

  // Override base:
  // base = 'https://safedrive.no/wp-json/wc/v3'
  // console.log({ base })