Files
mpc/ui/vite.config.ts
zeekay 5c38a548d3 feat(ui): embedded MPC admin dashboard — @hanzo/gui + go:embed
Vite + React SPA with 9 pages (Dashboard, Wallets, Vaults, Policies,
Settlements, Bridge, Payments, Audit, Settings) served at /_/mpc/ via
go:embed. Replaces the separate Next.js dashboard pod — the UI now ships
inside the mpcd binary. Uses @tanstack/react-query, wouter hash router,
dark theme, inline styles. Build output: 272KB.
2025-12-27 21:28:17 -08:00

21 lines
377 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
base: '/_/mpc/',
build: {
outDir: 'dist',
emptyOutDir: true,
rollupOptions: {
output: { manualChunks: undefined },
},
},
server: {
port: 3000,
proxy: {
'/v1/mpc': 'http://localhost:8081',
},
},
})