import { mergeConfig } from 'vite'; // import eslint from 'vite-plugin-eslint'; import baseConfig from './vite.config.base'; export default mergeConfig( { mode: 'development', server: { host: '0.0.0.0', // 允许局域网访问 port: 5176, open: false, fs: { strict: true, }, proxy: { '/mcp': { target: 'http://localhost:8100', changeOrigin: true, rewrite: (path) => path.replace(/^\/mcp/, '/mcp'), }, }, }, plugins: [ // eslint({ // cache: false, // include: ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.vue'], // exclude: ['node_modules'], // }), ], }, baseConfig );