Initial commit: tkmind admin frontend (React + Vite).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-06-16 19:44:31 +08:00
commit 8ad1a8a8da
30 changed files with 5981 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '');
const backendTarget = env.ADM_DEV_BACKEND ?? 'http://127.0.0.1:8081';
return {
plugins: [react()],
server: {
host: true,
port: 5174,
strictPort: true,
proxy: {
'/api': backendTarget,
'/auth': backendTarget,
'/admin-api': backendTarget,
},
},
build: {
outDir: 'dist',
emptyOutDir: true,
},
};
});