Initial commit

This commit is contained in:
shiyu
2026-02-09 13:19:28 +08:00
commit 17d13999b0
300 changed files with 48565 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
// 代理 API 请求到后端服务器
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
},
},
},
build: {
rollupOptions: {
input: {
main: 'index.html',
'plugin-frame': 'plugin-frame.html',
},
},
},
})