mirror of
https://github.com/ktds-dg0501/kt-event-marketing-fe.git
synced 2026-06-13 08:59:10 +00:00
feature/event 브랜치를 develop에 병합
- 최신 변경사항으로 충돌 해결 - RecommendationStep, eventApi, aiApi, eventApi 업데이트 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -23,17 +23,24 @@ import type {
|
||||
*
|
||||
* 현재는 apiClient를 사용하되, baseURL을 오버라이드합니다.
|
||||
*/
|
||||
const EVENT_API_BASE = '/api/v1/events';
|
||||
const EVENT_HOST = process.env.NEXT_PUBLIC_EVENT_HOST || 'http://localhost:8080';
|
||||
|
||||
/**
|
||||
* Event Service용 API 클라이언트
|
||||
* Event Service는 별도 포트(8080)에서 실행되므로 별도 클라이언트 생성
|
||||
*/
|
||||
import axios from 'axios';
|
||||
|
||||
const EVENT_API_BASE = '/api/v1/events';
|
||||
const API_BASE_URL = 'http://kt-event-marketing-api.20.214.196.128.nip.io';
|
||||
const API_VERSION = process.env.NEXT_PUBLIC_API_VERSION || 'v1';
|
||||
|
||||
const eventApiClient = axios.create({
|
||||
baseURL: API_BASE_URL,
|
||||
baseURL: `${EVENT_HOST}/api/${API_VERSION}`,
|
||||
timeout: 30000,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
withCredentials: false, // CORS 설정
|
||||
});
|
||||
|
||||
// Request interceptor - JWT 토큰 추가
|
||||
|
||||
Reference in New Issue
Block a user