17 lines
394 B
JavaScript
17 lines
394 B
JavaScript
const dotenv = require('dotenv')
|
|
try {
|
|
dotenv.config('./env')
|
|
} catch (e) {
|
|
//
|
|
}
|
|
// eslint-disable-next-line no-undef
|
|
const isDev = process.env.DEV
|
|
console.log('isDev', isDev)
|
|
module.exports = {
|
|
'/companyHome': {
|
|
target: isDev === 'true' ? 'http://10.3.0.7:9999/' : 'http://yintai.batiao8.com/',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/companyHome/, '')
|
|
}
|
|
}
|