rocky-211 백엔드 배포: - /devdata/services/kcg-ai-monitoring/backend/ (JAR + application-prod.yml) - systemd kcg-ai-backend.service (포트 18080) redis-211 prediction 배포: - /home/apps/kcg-ai-prediction/ (포트 18092) - systemd kcg-ai-prediction.service nginx 프록시 (rocky-211): - /api/ → localhost:18080 (Spring Boot) - /api/prediction/ → 192.168.1.18:18092 (prediction) - /api/prediction-chat → SSE 프록시 로컬 개발: - vite 프록시 기본값을 서버(kcg-ai-monitoring.gc-si.dev)로 변경 - 로컬 백엔드 사용 시: VITE_API_PROXY=http://localhost:8080 deploy/README.md: 배포 가이드 문서화 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
32 lines
810 B
TypeScript
32 lines
810 B
TypeScript
import { defineConfig } from 'vite'
|
|
import path from 'path'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
'@lib': path.resolve(__dirname, './src/lib'),
|
|
'@shared': path.resolve(__dirname, './src/shared'),
|
|
'@features': path.resolve(__dirname, './src/features'),
|
|
'@data': path.resolve(__dirname, './src/data'),
|
|
'@stores': path.resolve(__dirname, './src/stores'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': {
|
|
target: process.env.VITE_API_PROXY ?? 'https://kcg-ai-monitoring.gc-si.dev',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
},
|
|
},
|
|
})
|