Files
ai-rpg/frontend/vite.config.ts

32 lines
623 B
TypeScript
Raw Permalink Normal View History

2026-06-19 11:28:04 +03:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
2026-06-20 19:13:05 +03:00
import { fileURLToPath, URL } from "node:url";
2026-06-19 11:28:04 +03:00
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
2026-06-20 19:13:05 +03:00
"@": fileURLToPath(new URL("./src", import.meta.url)),
2026-06-19 11:28:04 +03:00
},
},
server: {
host: "0.0.0.0",
port: 5173,
proxy: {
"/api": {
2026-06-20 19:13:05 +03:00
target: "http://localhost:8000",
changeOrigin: true,
ws: true,
},
"/static": {
target: "http://localhost:8000",
2026-06-19 11:28:04 +03:00
changeOrigin: true,
},
},
},
2026-06-20 19:13:05 +03:00
build: {
outDir: "dist",
sourcemap: false,
},
2026-06-19 11:28:04 +03:00
});