/** * app env config * You set the parameter set NODE_ENV=production at startup and load different environments * 1. package.json scripts add `"prod": "cross-env NODE_ENV=production nodemon",` * 2. here get env decided to use different data `const env = process.env.NODE_ENV` * * You can refer to `template-full` */ const CONFIG = { ENV: 'development', PORT: 3100, BASE_URL: 'http://127.0.0.1', PREFIX: '/api', DATABASE: { DIALECT: 'mysql', DB_NAME: 'root', HOST: '127.0.0.1', PORT: 3306, USER: 'root', PASSWORD: '123456', TIMEZONE: '+08:00', }, } export default CONFIG