front end, config
This commit is contained in:
13
client/config.js
Normal file
13
client/config.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const env = process.env.NODE_ENV
|
||||
const beConf = require('../config/config.' + env + '.json')
|
||||
|
||||
const conf = {
|
||||
// environment
|
||||
title: beConf.title,
|
||||
|
||||
// base url
|
||||
baseurl: beConf.baseurl,
|
||||
apiurl: beConf.apiurl
|
||||
}
|
||||
|
||||
export default conf
|
||||
Reference in New Issue
Block a user