- Added container names for better identification of services in docker-compose.yml. - Refactored CameraManager to include error handling during initialization of camera recorders and streamers, ensuring the system remains operational even if some components fail. - Updated frontend components to support new MQTT Debug Panel functionality, enhancing monitoring capabilities.
41 lines
958 B
TypeScript
41 lines
958 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import federation from '@originjs/vite-plugin-federation'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
federation({
|
|
name: 'visionSystemRemote',
|
|
filename: 'remoteEntry.js',
|
|
exposes: {
|
|
'./App': './src/App.tsx',
|
|
},
|
|
shared: {
|
|
react: { singleton: true, eager: true },
|
|
'react-dom': { singleton: true, eager: true },
|
|
},
|
|
}),
|
|
],
|
|
server: {
|
|
port: 3002,
|
|
host: '0.0.0.0',
|
|
allowedHosts: ['exp-dash', 'localhost'],
|
|
cors: true
|
|
},
|
|
build: {
|
|
target: 'esnext',
|
|
rollupOptions: {
|
|
output: {
|
|
// Add hash to filenames for cache busting
|
|
entryFileNames: 'assets/[name]-[hash].js',
|
|
chunkFileNames: 'assets/[name]-[hash].js',
|
|
assetFileNames: 'assets/[name]-[hash].[ext]',
|
|
},
|
|
},
|
|
},
|
|
})
|
|
|