fix: remove hardcoded localhost api url to fix cors on production

This commit is contained in:
Khoa Vo 2026-01-01 15:44:18 +07:00
parent 94f046f0d6
commit d50c2721d2

View file

@ -6,7 +6,7 @@ COPY frontend/package*.json ./
RUN npm install --legacy-peer-deps
COPY frontend/ ./
# Build with standalone output
ENV NEXT_PUBLIC_API_URL="http://localhost:8000"
ENV NEXT_PUBLIC_API_URL=""
RUN npm run build
# --- Stage 2: Final Runtime Image ---