- Server: seasons CRUD routes + generic NocoDB helpers - Client: Settings page at /settings with inline add/edit/delete - Seasons stored in NocoDB Seasons table - Vite proxy: /api/seasons routed to Express server - Nav links added (desktop + mobile) - Locale keys for EN + AR - Seasons loaded non-blocking on app mount Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
31 lines
618 B
TypeScript
31 lines
618 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 3000,
|
|
proxy: {
|
|
'/api/erp': {
|
|
target: 'http://localhost:3002',
|
|
changeOrigin: true,
|
|
},
|
|
'/api/etl': {
|
|
target: 'http://localhost:3002',
|
|
changeOrigin: true,
|
|
},
|
|
'/api/seasons': {
|
|
target: 'http://localhost:3002',
|
|
changeOrigin: true,
|
|
},
|
|
'/api': {
|
|
target: 'http://localhost:8090',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
build: {
|
|
outDir: 'build',
|
|
},
|
|
});
|