init: initial commit

This commit is contained in:
Blizzard
2026-07-17 09:47:53 +08:00
commit d46267dde1
34 changed files with 2908 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import path from 'node:path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
port: 5173,
proxy: {
// 联调 Go 后端时启用:/api → gin
'/api': 'http://localhost:8080',
},
},
})