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:
parent
52a71fc42e
commit
ea31348886
1 changed files with 14 additions and 3 deletions
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue