chore: initialize WanderQ MiniAPP 2.0 repository

This commit is contained in:
inman
2026-07-23 15:48:34 +08:00
commit b4c0a1c516
93 changed files with 53525 additions and 0 deletions

25
vite.config.ts Normal file
View File

@@ -0,0 +1,25 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig(() => {
const apiTarget = process.env.VITE_DEV_API_PROXY_TARGET ?? "http://localhost:4000";
return {
plugins: [react()],
resolve: {
dedupe: ["react", "react-dom"],
},
server: {
port: 5173,
proxy: {
"/api": {
target: apiTarget,
changeOrigin: true,
},
"/uploads": {
target: apiTarget,
changeOrigin: true,
},
},
},
};
});