chore(messaging): 🔧 Update Vite build configuration for messaging frontend showcase plugins, targets, and server settings

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Lilith 2026-03-02 22:14:59 -08:00
parent 52a71fc42e
commit ea31348886

View file

@ -25,9 +25,20 @@ export default defineConfig({
{ find: '@hooks', replacement: path.resolve(frontendPublicSrc, 'hooks') },
{ find: '@services', replacement: path.resolve(frontendPublicSrc, 'services') },
{ find: '@utils', replacement: path.resolve(frontendPublicSrc, 'utils') },
// Replace websocket-client with mock
{ find: '@lilith/websocket-client', replacement: path.resolve(__dirname, 'src/mock-websocket.tsx') },
// Replace websocket-client with mock (skipped when REAL_WS=true)
...(process.env.REAL_WS ? [] : [
{ find: '@lilith/websocket-client', replacement: path.resolve(__dirname, 'src/mock-websocket.tsx') },
]),
],
},
server: { host: true, port: 5198 },
server: {
host: true,
port: 5198,
proxy: {
'/messaging': {
target: 'ws://localhost:3120',
ws: true,
},
},
},
});