generate config.js according the enviroment.
Merge branch 'master' into 87