From bb44a733dc3a1d2f24b58e553d879d6ddb2a6d75 Mon Sep 17 00:00:00 2001 From: jhbkjh Date: Fri, 31 Oct 2025 15:42:12 +0900 Subject: [PATCH] localhost:8080 --- next.config.js | 2 +- public/runtime-env.js | 2 +- src/app/api/events/[eventId]/ai-recommendations/route.ts | 2 +- src/shared/api/eventApi.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/next.config.js b/next.config.js index 886fe99..e702330 100644 --- a/next.config.js +++ b/next.config.js @@ -11,7 +11,7 @@ const nextConfig = { formats: ['image/webp', 'image/avif'], }, env: { - NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080', + NEXT_PUBLIC_API_URL: 'http://kt-event-marketing-api.20.214.196.128.nip.io', }, // CORS 우회를 위한 API Proxy 설정 async rewrites() { diff --git a/public/runtime-env.js b/public/runtime-env.js index f2ae7f5..5be5538 100644 --- a/public/runtime-env.js +++ b/public/runtime-env.js @@ -4,7 +4,7 @@ window.__runtime_config__ = { // 7개 마이크로서비스 호스트 USER_HOST: process.env.NEXT_PUBLIC_USER_HOST || "http://localhost:8081", - EVENT_HOST: process.env.NEXT_PUBLIC_EVENT_HOST || "http://localhost:8080", + EVENT_HOST: 'http://kt-event-marketing-api.20.214.196.128.nip.io', CONTENT_HOST: process.env.NEXT_PUBLIC_CONTENT_HOST || "http://localhost:8082", AI_HOST: process.env.NEXT_PUBLIC_AI_HOST || "http://localhost:8083", PARTICIPATION_HOST: process.env.NEXT_PUBLIC_PARTICIPATION_HOST || "http://localhost:8084", diff --git a/src/app/api/events/[eventId]/ai-recommendations/route.ts b/src/app/api/events/[eventId]/ai-recommendations/route.ts index 1605953..3ef07bb 100644 --- a/src/app/api/events/[eventId]/ai-recommendations/route.ts +++ b/src/app/api/events/[eventId]/ai-recommendations/route.ts @@ -1,7 +1,7 @@ import { NextRequest, NextResponse } from 'next/server'; const EVENT_API_HOST = - process.env.NEXT_PUBLIC_EVENT_HOST || 'http://kt-event-marketing-api.20.214.196.128.nip.io'; + 'http://kt-event-marketing-api.20.214.196.128.nip.io'; const API_VERSION = process.env.NEXT_PUBLIC_API_VERSION || 'v1'; /** diff --git a/src/shared/api/eventApi.ts b/src/shared/api/eventApi.ts index 7736fce..b29af30 100644 --- a/src/shared/api/eventApi.ts +++ b/src/shared/api/eventApi.ts @@ -1,7 +1,7 @@ import axios, { AxiosInstance } from 'axios'; // Event Service API 클라이언트 -const EVENT_API_BASE_URL = process.env.NEXT_PUBLIC_EVENT_HOST || 'http://localhost:8080'; +const EVENT_API_BASE_URL = 'http://kt-event-marketing-api.20.214.196.128.nip.io'; const API_VERSION = process.env.NEXT_PUBLIC_API_VERSION || 'v1'; export const eventApiClient: AxiosInstance = axios.create({