From b5fe18ef9ebac4974f98492284b6899fd89e01d8 Mon Sep 17 00:00:00 2001 From: Khoa Vo Date: Thu, 14 May 2026 17:50:32 +0700 Subject: [PATCH] fix: correct NEXT_PUBLIC_API_URL to include /api path --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e792320..44818d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ COPY frontend/package.json frontend/package-lock.json ./ RUN npm ci FROM node:20-alpine AS frontend-builder -ARG NEXT_PUBLIC_API_URL=http://127.0.0.1:8080 +ARG NEXT_PUBLIC_API_URL=http://127.0.0.1:8080/api WORKDIR /app COPY --from=frontend-deps /app/node_modules ./node_modules COPY frontend/ ./ @@ -57,7 +57,7 @@ ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 ENV KVTUBE_DATA_DIR=/app/data ENV GIN_MODE=release -ARG NEXT_PUBLIC_API_URL=http://127.0.0.1:8080 +ARG NEXT_PUBLIC_API_URL=http://127.0.0.1:8080/api ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL} RUN addgroup -S kvtube && adduser -S kvtube -G kvtube && chown -R kvtube:kvtube /app