Fix: Configure VITE_API_URL for Dockploy deployment

This commit is contained in:
2025-11-18 17:46:42 -03:00
parent bc4721737c
commit 613132d665
2 changed files with 7 additions and 4 deletions

View File

@@ -12,9 +12,12 @@ RUN npm install
COPY . .
# Build argument para la URL de la API
ARG VITE_API_URL
ARG VITE_API_URL=http://localhost:8000
ENV VITE_API_URL=$VITE_API_URL
# Mostrar la URL que se está usando (para debug)
RUN echo "Building with VITE_API_URL=${VITE_API_URL}"
# Construir la aplicación
RUN npm run build