- Deleted unused API test files, RTSP diagnostic scripts, and development utility scripts to reduce clutter. - Removed outdated database schema and modularization proposal documents to maintain focus on current architecture. - Cleaned up configuration files and logging scripts that are no longer in use, enhancing project maintainability.
33 lines
698 B
TypeScript
33 lines
698 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',
|
|
},
|
|
})
|
|
|