나스 서비스 준비

This commit is contained in:
2026-06-22 19:52:45 +09:00
parent 2ecf6201c0
commit 331d6c5fe9
7 changed files with 46 additions and 21 deletions

View File

@@ -15,7 +15,8 @@ const UaDeckApi = (() => {
const { hostname, port, protocol } = window.location;
const isLocal = hostname === 'localhost' || hostname === '127.0.0.1';
// Live Server 등 정적 전용 포트 → API 컨테이너/프로세스(3000)로 직접 연결
if (isLocal && port && port !== '8080' && port !== '80' && port !== '443' && port !== '') {
const proxiedWebPorts = new Set(['44082', '8080', '80', '443', '']);
if (isLocal && port && !proxiedWebPorts.has(port)) {
return `${protocol}//${hostname}:3000/api/v1`;
}