mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 19:23:31 +00:00
8e0aa39643
- Fixed alert clearing logic to work even when alerts are acknowledged - Added immediate WebSocket state broadcast after alert resolution - Fixed frontend activeAlerts store updates to maintain SolidJS reactivity - Added logging for alert resolution events The alert system now properly: - Creates alerts when thresholds are exceeded - Clears alerts automatically when values drop below clear threshold - Updates frontend in real-time without requiring page refresh
35 lines
702 B
TypeScript
35 lines
702 B
TypeScript
import { defineConfig } from 'vite';
|
|
import solid from 'vite-plugin-solid';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [solid()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 7655,
|
|
host: '0.0.0.0', // Listen on all interfaces for remote access
|
|
proxy: {
|
|
'/ws': {
|
|
target: 'ws://127.0.0.1:3000',
|
|
ws: true,
|
|
changeOrigin: true,
|
|
},
|
|
'/api': {
|
|
target: 'http://127.0.0.1:3000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
build: {
|
|
target: 'esnext',
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
},
|
|
}); |