Files
ContainerFlow/vite.config.ts
T

29 lines
690 B
TypeScript
Raw Normal View History

2026-03-22 09:53:08 +00:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
2026-05-11 01:42:08 +00:00
import pkg from "./package.json" with { type: "json" };
2026-03-22 09:53:08 +00:00
export default defineConfig({
plugins: [react(), tailwindcss()],
root: "src/client",
build: {
outDir: "../../dist",
emptyOutDir: true,
},
2026-05-11 01:42:08 +00:00
define: {
// Inject app version from package.json so UI never drifts from the source of truth
__APP_VERSION__: JSON.stringify(pkg.version),
},
2026-03-22 09:53:08 +00:00
server: {
2026-04-30 04:05:03 +00:00
port: 9420,
host: "0.0.0.0",
2026-03-22 09:53:08 +00:00
proxy: {
"/api": "http://localhost:9470",
"/ws": {
target: "http://localhost:9470",
ws: true,
},
},
},
});