module.exports = {
  devServer: {
   // 代理配置
    proxy: {
      '/getIp': {
        target: 'http://ip-api.com/json/?lang=zh-CN',
        changeOrigin: true,
        pathRewrite: {
            '/getIp': '' 
        }
      },
      '/api/scrape': {
        target: 'http://localhost:3000/scrape/',
        changeOrigin: true,
        headers: {                  
          Host: 'aurora.roginx.ink'
        },
        pathRewrite: {
            '/api/scrape': '' 
        }
      },
      '/api/aurora': {
        target: 'http://aurora.roginx.ink/aurora/',
        changeOrigin: true,
        headers: {                  
          Host: 'aurora.roginx.ink'
        },
        pathRewrite: {
            '/api/aurora': '' 
        }
      },
      '/v': {
        target: 'http://aurora.roginx.ink/v/',
        changeOrigin: true,
        headers: {                  
          Host: 'aurora.roginx.ink'
        },
        pathRewrite: {
            '/v': '' 
        }
      },
      '/api': {
        target: 'http://aurora.roginx.ink/ablaze/',
        changeOrigin: true,
        headers: {                  
          Host: 'aurora.roginx.ink'
        },
        pathRewrite: {
            '/api': '/' 
        }
      },
      '/mapi163/weapi': {
        target: 'http://aurora.roginx.ink/',
        changeOrigin: true,
        headers: {                  
          Host: 'aurora.roginx.ink'
        },
      },
    }
  }
}