chore: 프론트엔드 포트 변경(5174) + CORS 허용 + 드론 모델명 스타일 개선

This commit is contained in:
Nan Kyung Lee 2026-03-10 14:40:12 +09:00
부모 df01fd1b1d
커밋 ed3758645c
3개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@ -75,6 +75,7 @@ const allowedOrigins = [
...(process.env.NODE_ENV !== 'production' ? [
'http://localhost:5173',
'http://localhost:5174',
'http://localhost:5175',
'http://localhost:3000',
] : []),
].filter(Boolean) as string[]

파일 보기

@ -131,7 +131,7 @@ export function RealtimeDrone() {
<div className="flex items-center gap-2">
<div className="text-sm">🚁</div>
<div>
<div className="text-[11px] font-semibold text-text-1 font-korean">{stream.shipName} <span className="text-[9px] text-text-3 font-normal">({stream.droneModel})</span></div>
<div className="text-[11px] font-semibold text-text-1 font-korean">{stream.shipName} <span className="text-[9px] text-primary-cyan font-semibold">({stream.droneModel})</span></div>
<div className="text-[9px] text-text-3 font-mono">{stream.ip}</div>
</div>
</div>

파일 보기

@ -6,6 +6,7 @@ import path from 'path'
export default defineConfig({
plugins: [react()],
server: {
port: 5174,
proxy: {
// HLS 스트림 프록시 등 상대 경로 API 요청을 백엔드로 전달
'/api': {