iot-gateway_fontend/config/vite.config.dev.ts

33 lines
708 B
TypeScript
Raw Normal View History

2024-11-12 15:44:05 +08:00
import { mergeConfig } from 'vite';
import eslint from 'vite-plugin-eslint';
import * as path from 'path';
import baseConfig from './vite.config.base';
export default mergeConfig(
{
mode: 'development',
server: {
open: true,
fs: {
strict: true,
},
proxy: {
'/api': {
// target: 'http://8.134.75.234:8081',
// target: 'http://192.168.3.238:8081',
target: 'http://localhost:8081',
2024-11-12 15:44:05 +08:00
changeOrigin: true,
},
},
},
plugins: [
eslint({
cache: false,
include: ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.vue'],
exclude: ['node_modules'],
}),
],
},
baseConfig
);