e8e37d77fe
Extracted from unibus v0.13.0: the chat SPA (web/, React+Mantine, per-user BIP39 wallet) and the web gateway (cmd/webgw, REST+SSE) that acts as a bus peer for the browser. Consumes unibus as a Go module via replace => ../unibus, keeping its own replace fn-registry for the cybersecurity primitives. go build/vet/test and pnpm build green in the new location.
15 lines
483 B
TypeScript
15 lines
483 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
// En dev, /api (REST + SSE) se proxea al gateway Go (cmd/webgw, puerto 8481).
|
|
// El proxy hace streaming, así que el SSE de /api/rooms/{id}/stream funciona a
|
|
// través de él. En producción el gateway sirve el dist embebido y no hay proxy.
|
|
server: {
|
|
host: true,
|
|
port: 5183,
|
|
proxy: { "/api": "http://127.0.0.1:8481" },
|
|
},
|
|
});
|