나스 서비스 준비
This commit is contained in:
@@ -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`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user