Files
telegram-management-system/marketing-agent/frontend/vite.config.js
你的用户名 237c7802e5
Some checks failed
Deploy / deploy (push) Has been cancelled
Initial commit: Telegram Management System
Full-stack web application for Telegram management
- Frontend: Vue 3 + Vben Admin
- Backend: NestJS
- Features: User management, group broadcast, statistics

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 15:37:50 +08:00

41 lines
832 B
JavaScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
},
server: {
port: 3008,
host: '0.0.0.0',
proxy: {
'/api': {
target: 'http://localhost:3030',
changeOrigin: true
},
'/socket.io': {
target: 'http://localhost:3030',
ws: true,
changeOrigin: true
}
}
},
build: {
outDir: 'dist',
assetsDir: 'assets',
sourcemap: false,
rollupOptions: {
output: {
manualChunks: {
'element-plus': ['element-plus'],
'chart': ['chart.js', 'vue-chartjs'],
'vendor': ['vue', 'vue-router', 'pinia', 'axios']
}
}
}
}
})