feat: generate config.js according the enviroment.

#78