From ea3134888646c825aff6407cbed71bce5f48f477 Mon Sep 17 00:00:00 2001 From: Lilith Date: Mon, 2 Mar 2026 22:14:59 -0800 Subject: [PATCH] =?UTF-8?q?chore(messaging):=20=F0=9F=94=A7=20Update=20Vit?= =?UTF-8?q?e=20build=20configuration=20for=20messaging=20frontend=20showca?= =?UTF-8?q?se=20plugins,=20targets,=20and=20server=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- .../messaging/frontend-showcase/vite.config.ts | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/features/messaging/frontend-showcase/vite.config.ts b/features/messaging/frontend-showcase/vite.config.ts index 2637b8202..01b8a0edd 100644 --- a/features/messaging/frontend-showcase/vite.config.ts +++ b/features/messaging/frontend-showcase/vite.config.ts @@ -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, + }, + }, + }, });