UNPKG

hc-web-log-mon

Version:

基于 JS 跨平台插件,为前端项目提供【 行为、性能、异常、请求、资源、路由、曝光、录屏 】监控手段

51 lines (49 loc) 1.41 kB
import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import { resolve } from 'path' // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], server: { https: false, host: '0.0.0.0', port: 6657, cors: true, proxy: { '/getList': { target: 'http://localhost:3352/', changeOrigin: false, // target是域名的话,需要这个参数, secure: false // 设置支持https协议的代理, }, '/setList': { target: 'http://localhost:3352/', changeOrigin: false, // target是域名的话,需要这个参数, secure: false // 设置支持https协议的代理, }, '/cleanTracingList': { target: 'http://localhost:3352/', changeOrigin: false, secure: false }, '/getBaseInfo': { target: 'http://localhost:3352' }, '/getAllTracingList': { target: 'http://localhost:3352' }, '/trackweb': { target: 'http://localhost:3352' }, '/getSourceMap': { target: 'http://localhost:3352/', changeOrigin: false, // target是域名的话,需要这个参数, secure: false // 设置支持https协议的代理, } } }, resolve: { alias: { '@': resolve(__dirname, 'src') } } })