Files
microdao-daarion/node-network-app/vite.config.ts
Apple 3de3c8cb36 feat: Add presence heartbeat for Matrix online status
- matrix-gateway: POST /internal/matrix/presence/online endpoint
- usePresenceHeartbeat hook with activity tracking
- Auto away after 5 min inactivity
- Offline on page close/visibility change
- Integrated in MatrixChatRoom component
2025-11-27 00:19:40 -08:00

30 lines
677 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
port: 3000,
open: true,
proxy: {
'/api/node-metrics': {
target: 'http://localhost:9205',
changeOrigin: true,
},
'/api/v1/nodes': {
target: 'http://localhost:9205',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/v1/, '/api/v1'),
},
'/api/metrics': {
target: 'http://localhost:9205',
changeOrigin: true,
},
'/api': {
target: 'http://localhost:9205',
changeOrigin: true,
},
},
},
});