add initial frontend

This commit is contained in:
2026-02-17 17:40:00 -08:00
parent 4b05aa7bf3
commit be7e8a3c33
20 changed files with 1971 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import path from "path"
import tailwindcss from "@tailwindcss/vite"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
"/api": {
target: "http://localhost:8080",
rewrite: (path) => path.replace(/^\/api/, ""),
},
},
},
})