UNPKG

peerpigeon

Version:

WebRTC-based peer-to-peer mesh networking library with intelligent routing and signaling server

23 lines (21 loc) 539 B
import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; export default defineConfig({ plugins: [vue()], // Use root base for both dev and production to avoid path issues base: '/', server: { port: 5173, strictPort: false, // Use 0.0.0.0 to allow all network interfaces host: '0.0.0.0', https: false, cors: true, // Disable HMR to avoid WebSocket conflicts hmr: false }, // Prevent Vite from optimizing PeerPigeon library optimizeDeps: { exclude: ['peerpigeon'] } });