Merge branch 'development' into feature/fecha-pago-no-obligatorio

This commit is contained in:
2026-04-24 17:06:44 -05:00
4 changed files with 113 additions and 32 deletions

View File

@@ -11,7 +11,11 @@ wait_for_backend() {
echo "Esperando a que el backend esté disponible en ${url}..."
while [ $attempt -le $max_attempts ]; do
if wget -q -O /dev/null "${url}/health" 2>/dev/null; then
# NOTA: usar la URL tal cual la pasa el caller. Antes esta función agregaba
# un "/health" extra al final (resultando en /api/health/health → 404), lo
# que provocaba que el entrypoint esperara 30 intentos en vano antes de
# arrancar Vite, sumando ~90 s muertos al arranque del frontend.
if wget -q -O /dev/null "${url}" 2>/dev/null; then
echo "✓ Backend está listo"
return 0
fi

View File

@@ -42,6 +42,12 @@ export default defineConfig({
host: true, // escucha en 0.0.0.0
allowedHosts: [
'anexo76-dev.aduanasoft.com',
// Requeridos para dev local, healthcheck del contenedor y E2E (Playwright
// con --network host apunta a 127.0.0.1:5173). Al definir allowedHosts,
// Vite 5.1+ reemplaza el default ['.localhost'] y bloquea todo lo que no
// esté aquí, devolviendo 403 "Blocked request".
'127.0.0.1',
'localhost',
// 'otro-host.com' si necesitas más
],
proxy: {