mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-30 19:18:59 +08:00
5d6d392768
--bug=1038771 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038771 --bug=1038703 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038703
63 lines
1.8 KiB
TypeScript
63 lines
1.8 KiB
TypeScript
/// <reference types="vitest" />
|
|
import baseConfig from './vite.config.base';
|
|
import { mergeConfig } from 'vite';
|
|
import eslint from 'vite-plugin-eslint';
|
|
|
|
export default mergeConfig(
|
|
{
|
|
mode: 'development',
|
|
server: {
|
|
open: true,
|
|
fs: {
|
|
strict: true,
|
|
},
|
|
proxy: {
|
|
'/ws': {
|
|
target: 'http://172.16.200.18:8081/',
|
|
changeOrigin: true,
|
|
rewrite: (path: string) => path.replace(/^\/front\/ws/, ''),
|
|
ws: true,
|
|
},
|
|
'/front': {
|
|
target: 'http://172.16.200.18:8081/',
|
|
changeOrigin: true,
|
|
rewrite: (path: string) => path.replace(/^\/front/, ''),
|
|
},
|
|
'/file': {
|
|
target: 'http://172.16.200.18:8081/',
|
|
changeOrigin: true,
|
|
rewrite: (path: string) => path.replace(/^\/front\/file/, ''),
|
|
},
|
|
'/attachment': {
|
|
target: 'http://172.16.200.18:8081/',
|
|
changeOrigin: true,
|
|
rewrite: (path: string) => path.replace(/^\/front\/attachment/, ''),
|
|
},
|
|
'/bug/attachment': {
|
|
target: 'http://172.16.200.18:8081/',
|
|
changeOrigin: true,
|
|
rewrite: (path: string) => path.replace(/^\/front\/bug\/attachment/, ''),
|
|
},
|
|
'/plugin/image': {
|
|
target: 'http://172.16.200.18:8081/',
|
|
changeOrigin: true,
|
|
rewrite: (path: string) => path.replace(/^\/front\/plugin\/image/, ''),
|
|
},
|
|
'/base-display': {
|
|
target: 'http://172.16.200.18:8081/',
|
|
changeOrigin: true,
|
|
rewrite: (path: string) => path.replace(/^\/front\/base-display/, ''),
|
|
},
|
|
},
|
|
},
|
|
plugins: [
|
|
eslint({
|
|
cache: false,
|
|
include: ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.vue'],
|
|
exclude: ['node_modules'],
|
|
}),
|
|
],
|
|
},
|
|
baseConfig
|
|
);
|