Livrare LOT 1 - Didi
This commit is contained in:
commit
5380c3fc63
990 changed files with 133308 additions and 0 deletions
26
ai_platform/modules/dashboard/web/vite.config.ts
Normal file
26
ai_platform/modules/dashboard/web/vite.config.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import path from 'node:path';
|
||||
|
||||
// React SPA mounted at /admin-ai/ in production (FastAPI StaticFiles).
|
||||
// In dev, runs at :5173 with proxy to FastAPI for /api/* + /health.
|
||||
export default defineConfig({
|
||||
base: '/admin-ai/',
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: { '@': path.resolve(__dirname, './src') },
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
sourcemap: true,
|
||||
chunkSizeWarningLimit: 700,
|
||||
},
|
||||
server: {
|
||||
port: 5173,
|
||||
strictPort: true,
|
||||
proxy: {
|
||||
'/api': 'http://localhost:51300',
|
||||
'/health': 'http://localhost:51300',
|
||||
},
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue