mirror of
https://github.com/nethunterzist/trendyol-analiz
synced 2026-07-01 01:17:04 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user