Files
aiagent/frontend/vite.config.ts

23 lines
443 B
TypeScript
Raw Normal View History

2026-01-19 00:09:36 +08:00
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { fileURLToPath, URL } from 'node:url'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
port: 3000,
proxy: {
'/api': {
target: 'http://localhost:8037',
changeOrigin: true
}
}
}
})