admin / SAynapse-Horizon
publicSelf Hosted Cyber Threat Intelligence Hub
SAynapse-Horizon / Synapse-Horizon-v2 / vite.config.js
595 B · main
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // Synapse-Horizon dev/build config. Bound to 0.0.0.0 so it works inside a container. export default defineConfig({ plugins: [react()], server: { host: '0.0.0.0', port: 5191, strictPort: true, proxy: { // Forward API calls to the ingestion backend during local development. '/api': { target: process.env.VITE_API_TARGET || 'http://localhost:4001', changeOrigin: true, }, }, }, preview: { host: '0.0.0.0', port: 4173, strictPort: true, }, }) |