18 lines
506 B
JavaScript
18 lines
506 B
JavaScript
import dotenv from "dotenv"
|
|
dotenv.config()
|
|
// eslint-disable-next-line no-undef
|
|
const isDev = process.env.DEV
|
|
console.log("isDev:" + isDev)
|
|
export default {
|
|
'/companyHome': {
|
|
target: isDev ? "http://10.3.0.7:9999/" : 'http://yintai.batiao8.com/',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/companyHome/, '')
|
|
},
|
|
'/revalidate': {
|
|
target: 'https://www.china-yintai.com',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/revalidate/, '/api/revalidate')
|
|
}
|
|
}
|