|
@@ -10,7 +10,21 @@ module.exports = {
|
|
|
// Paths
|
|
|
assetsSubDirectory: 'static',
|
|
|
assetsPublicPath: '/',
|
|
|
- proxyTable: {},
|
|
|
+ proxyTable: {
|
|
|
+ '/api-web': {
|
|
|
+ target: proxyUrl,
|
|
|
+ changeOrigin: true
|
|
|
+ },
|
|
|
+ '/api-admin': {
|
|
|
+ target: proxyUrl,
|
|
|
+ changeOrigin: true
|
|
|
+ },
|
|
|
+ '/api-auth': {
|
|
|
+ target: proxyUrl,
|
|
|
+ changeOrigin: true,
|
|
|
+ rewrite: path => path.replace(/^\/gitee/, '/api-auth')
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
// Various Dev Server settings
|
|
|
host: 'localhost', // can be overwritten by process.env.HOST
|