- aerialRouter/Service: stitch(이미지합성) + drone stream 기능 통합 - aerialService: IMAGE_API_URL(stitch) / OIL_INFERENCE_URL(inference) 분리 - aerialApi: stitchImages + DroneStream API 함수 공존 - MapView: analysis props(HEAD) + lightMode prop(INCOMING) 통합 - CctvView: 지도/리스트/그리드 3-way 뷰 채택 (INCOMING 확장) - OilSpillView: analysis 상태 + 데모 자동 표시 useEffect 통합 - PredictionInputSection: POSEIDON/KOSPS 모델 추가 (ready 필드 포함) - RightPanel: controlled props 방식 유지, 미사용 내부 상태 제거 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
926 B
TypeScript
Executable File
36 lines
926 B
TypeScript
Executable File
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 5174,
|
|
proxy: {
|
|
// HLS 스트림 프록시 등 상대 경로 API 요청을 백엔드로 전달
|
|
'/api': {
|
|
target: 'http://localhost:3001',
|
|
changeOrigin: true,
|
|
},
|
|
'/daily_ocean': {
|
|
target: 'https://www.khoa.go.kr',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@common': path.resolve(__dirname, 'src/common'),
|
|
'@tabs': path.resolve(__dirname, 'src/tabs'),
|
|
},
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
// deck.gl → @loaders.gl/worker-utils가 Node.js child_process를 참조하나
|
|
// 브라우저에서는 해당 코드 경로를 타지 않으므로 undefined shim 허용
|
|
shimMissingExports: true,
|
|
},
|
|
},
|
|
})
|