chore: 프론트엔드 포트 변경(5174) + CORS 허용 + 드론 모델명 스타일 개선
This commit is contained in:
부모
df01fd1b1d
커밋
ed3758645c
@ -75,6 +75,7 @@ const allowedOrigins = [
|
|||||||
...(process.env.NODE_ENV !== 'production' ? [
|
...(process.env.NODE_ENV !== 'production' ? [
|
||||||
'http://localhost:5173',
|
'http://localhost:5173',
|
||||||
'http://localhost:5174',
|
'http://localhost:5174',
|
||||||
|
'http://localhost:5175',
|
||||||
'http://localhost:3000',
|
'http://localhost:3000',
|
||||||
] : []),
|
] : []),
|
||||||
].filter(Boolean) as string[]
|
].filter(Boolean) as string[]
|
||||||
|
|||||||
@ -131,7 +131,7 @@ export function RealtimeDrone() {
|
|||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<div className="text-sm">🚁</div>
|
<div className="text-sm">🚁</div>
|
||||||
<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 className="text-[9px] text-text-3 font-mono">{stream.ip}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import path from 'path'
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
server: {
|
server: {
|
||||||
|
port: 5174,
|
||||||
proxy: {
|
proxy: {
|
||||||
// HLS 스트림 프록시 등 상대 경로 API 요청을 백엔드로 전달
|
// HLS 스트림 프록시 등 상대 경로 API 요청을 백엔드로 전달
|
||||||
'/api': {
|
'/api': {
|
||||||
|
|||||||
불러오는 중...
Reference in New Issue
Block a user