fix: Dockerfile VITE_API_URL default boş yapıldı (production build)

Ne yaptık:
- admin-panel/Dockerfile: ARG VITE_API_URL=http://localhost:8001 → ARG VITE_API_URL=

Neden yaptık:
- Dockerfile'daki default değer build sırasında .env dosyasını override ediyordu
- Sonuç: production build'e http://127.0.0.1:8001 inline ediliyordu
- Boş string ile nginx relative URL proxy (/api/, /categories/) devreye giriyor

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
furkanyigit34
2026-03-31 00:23:57 +03:00
parent 1aa626d4b3
commit 3867df22aa

View File

@@ -20,7 +20,8 @@ RUN npm ci --legacy-peer-deps && \
COPY . .
# Build argument for API URL (baked into production build)
ARG VITE_API_URL=http://localhost:8001
# Empty = relative URLs, nginx proxies /api/ and /categories/ to backend
ARG VITE_API_URL=
ENV VITE_API_URL=$VITE_API_URL
# Build production bundle