AutoTeam-F / web /vite.config.js
cnitlrt's picture
feat: 添加 Vue 3 Web 管理面板,内嵌到 FastAPI
4283ada
Raw
History Blame Contribute Delete
402 Bytes
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
export default defineConfig({
plugins: [vue()],
build: {
outDir: path.resolve(__dirname, '../src/autoteam/web/dist'),
emptyOutDir: true,
},
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:8787',
changeOrigin: true,
},
},
},
})