Refactor video streaming feature and update dependencies
- Replaced npm ci with npm install in docker-compose for better package management. - Introduced remote component loading for the VideoStreamingPage with error handling. - Updated the title in index.html to "Experiments Dashboard" for clarity. - Added new video remote service configuration in docker-compose for improved integration. - Removed deprecated files and components related to the video streaming feature to streamline the codebase. - Updated package.json and package-lock.json to include @originjs/vite-plugin-federation for module federation support.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import federation from '@originjs/vite-plugin-federation'
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
|
||||
// https://vite.dev/config/
|
||||
@@ -9,6 +10,22 @@ export default defineConfig({
|
||||
jsxRuntime: 'automatic'
|
||||
}),
|
||||
tailwindcss(),
|
||||
// Module Federation groundwork as shell. No remotes yet; does not change behavior.
|
||||
federation({
|
||||
name: 'dashboard-shell',
|
||||
filename: 'remoteEntry.js',
|
||||
exposes: {
|
||||
// You can expose shared UI/components later if needed
|
||||
},
|
||||
remotes: {
|
||||
// Allow overriding by env; default to localhost for dev
|
||||
videoRemote: process.env.VITE_VIDEO_REMOTE_URL || 'http://localhost:3001/assets/remoteEntry.js'
|
||||
},
|
||||
shared: {
|
||||
react: { singleton: true, eager: true },
|
||||
'react-dom': { singleton: true, eager: true },
|
||||
},
|
||||
})
|
||||
],
|
||||
server: {
|
||||
// Allow connections from the VM hostname and any other host/IP
|
||||
|
||||
Reference in New Issue
Block a user