1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-27 10:10:50 +03:00
guide/front/build/build-config.js

28 lines
601 B
JavaScript
Raw Normal View History

const path = require('path')
const moment = require('moment')
2018-09-13 10:51:20 +03:00
const axios = require('axios')
2018-09-02 23:38:25 +03:00
const appName = 'Aelve Guide'
const clientPort = 4000
const ssrPort = 5000
const distPath = rootResolve('./dist')
2018-09-13 10:51:20 +03:00
axios.defaults.baseURL = `http://localhost:${ssrPort}`
const env = {
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
'process.env.BUILD_TIME': JSON.stringify(moment(new Date()).format('YYYY-MM-DD HH:mm:ss'))
}
module.exports = {
appName,
env,
clientPort,
ssrPort,
distPath
}
function rootResolve (filePath) {
return path.resolve(__dirname, '../', filePath)
}