init: React frontend + PHP/Slim backend chat app

This commit is contained in:
2026-05-14 10:46:20 +08:00
commit 893cd136c1
92 changed files with 20834 additions and 0 deletions
Executable
+24
View File
@@ -0,0 +1,24 @@
import path from "path"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
import { inspectAttr } from 'kimi-plugin-inspect-react'
// https://vite.dev/config/
export default defineConfig({
base: './',
plugins: [inspectAttr(), react()],
server: {
port: 3000,
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
},
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});