Files
nxxmdata/government-admin/vite.config.js

22 lines
417 B
JavaScript
Raw Normal View History

import { defineConfig } from 'vite'
2025-09-17 18:04:28 +08:00
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': '/src',
'antd': 'ant-design-vue'
}
},
server: {
port: 3002,
proxy: {
'/api': {
target: 'http://localhost:5352', // 政府端后端服务地址
changeOrigin: true
2025-09-17 18:04:28 +08:00
}
}
}
})