Files
hfb_sys/frontend/vite.config.ts
T
2026-05-22 15:05:28 +08:00

20 lines
365 B
TypeScript

import { fileURLToPath, URL } from 'node:url'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
port: 5173,
proxy: {
'/api': 'http://127.0.0.1:8080',
},
},
})