Initial commit of template

This commit is contained in:
Antigravity
2026-07-16 14:03:53 +05:30
commit 09c68efb2d
70 changed files with 6050 additions and 0 deletions

41
vite.config.ts Normal file
View File

@@ -0,0 +1,41 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import path from "path";
import componentTagger from "./plugins/component-tagger";
export default defineConfig(({ mode }) => ({
server: {
host: "0.0.0.0",
port: 5173,
allowedHosts: true,
hmr: {
overlay: false,
timeout: 15000,
},
watch: {
usePolling: true,
interval: 500,
binaryInterval: 500,
},
proxy: {
"/api": {
target: "http://localhost:8080",
changeOrigin: true,
},
"/mobile": {
target: "http://localhost:8081",
changeOrigin: true,
},
"/games": {
target: "http://localhost:3000",
changeOrigin: true,
},
},
},
plugins: [react(), mode === "development" && componentTagger()],
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
},
},
}));