해당 서비스 도커화 성공, 룰 추가, 로그인 오류 수정, 소문자 룰 어느정도 해결

This commit is contained in:
Hyungi Ahn
2025-08-01 15:55:27 +09:00
parent ef06cec8d6
commit 809b2af53e
6418 changed files with 1922672 additions and 69 deletions

View File

@@ -13,10 +13,8 @@ function getApiBaseUrl() {
hostname === 'localhost' || hostname === '127.0.0.1' ||
hostname.includes('.local') || hostname.includes('hyungi')) {
// 현재 웹서버의 도메인/IP를 그대로 사용하되 /api 경로만 추가
const baseUrl = port && port !== '80' && port !== '443'
? `${protocol}//${hostname}:${port}/api`
: `${protocol}//${hostname}/api`;
// 현재 웹서버의 도메인/IP를 그대로 사용하되 API 포트(3005)로 직접 연결
const baseUrl = `${protocol}//${hostname}:3005/api`;
console.log('✅ nginx 프록시 사용:', baseUrl);
return baseUrl;
@@ -27,7 +25,11 @@ function getApiBaseUrl() {
return `${protocol}//${hostname}:3005/api`;
}
export const API = getApiBaseUrl();
// API 설정
const API_URL = getApiBaseUrl();
export const API = API_URL;
export const API_BASE_URL = API_URL;
export function ensureAuthenticated() {
const token = localStorage.getItem('token');