6c86f0f571
- integrated request-module into module registry - moved backend into modules/request-module - added manifest.json and module.py - implemented dynamic router mounting - implemented dynamic static mounting - removed direct dependencies from platform core - verified startup with request-module - verified startup without request-module - added implementation_report_003.md
21 lines
448 B
TypeScript
21 lines
448 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 5174,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8000',
|
|
changeOrigin: true,
|
|
},
|
|
'/platform-api': {
|
|
target: 'http://localhost:8001',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/platform-api/, '/api'),
|
|
}
|
|
}
|
|
}
|
|
})
|