- Multi-stage Dockerfile: builds frontend, packages with Python backend - admin.py serves frontend/dist as StaticFiles in production - docker-entrypoint.sh runs proxy + admin-api, exits cleanly if either dies - .dockerignore excludes .env, venv, tests, node_modules - Split requirements.txt (prod) / requirements-dev.txt (dev+test) - aiofiles added for StaticFiles support - start.sh: port checks before startup, venv auto-activation, trap cleanup - vite.config.js: clearScreen disabled - README rewritten to reflect current architecture Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 lines
430 B
JavaScript
17 lines
430 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
clearScreen: false,
|
|
server: {
|
|
proxy: {
|
|
'/api/api-keys': 'http://localhost:8001',
|
|
'/api/settings': 'http://localhost:8001',
|
|
'/api/ollama-models': 'http://localhost:8001',
|
|
'/api/proxy-info': 'http://localhost:8001',
|
|
'/api': 'http://localhost:8000',
|
|
},
|
|
},
|
|
})
|