build: 初始化构建前端

This commit is contained in:
2026-05-23 12:30:06 +08:00
parent 03266b58c9
commit 3be7e08162
9 changed files with 1943 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
port: 3000,
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
},
},
},
})