외부 아이피에서 동작하도록 수정 #15

Merged
hyeonsu merged 12 commits from ipadress into dev 2025-09-04 17:51:39 +09:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit 2bffec1dbf - Show all commits

View File

@ -22,6 +22,10 @@ COPY . .
# Disable telemetry during the build
ENV NEXT_TELEMETRY_DISABLED 1
# 빌드 시 환경변수 설정 (ARG로 받아서 ENV로 설정)
ARG NEXT_PUBLIC_API_URL=http://192.168.0.70:8080/api
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
# Build the application
ENV DISABLE_ESLINT_PLUGIN=true
RUN npm run build

View File

@ -41,9 +41,9 @@ const nextConfig = {
];
},
// 환경 변수 (런타임에 읽기) - 로컬 개발환경용
// 환경 변수 (런타임에 읽기)
env: {
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || "http://localhost:8080/api",
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || "http://192.168.0.70:8080/api",
},
};