diff --git a/Dockerfile b/Dockerfile index 05447c9..6e1adb7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# BUILD_ID: 2024-03-27_T14_35_RESET +# BUILD_ID: 2024-03-27_T14_40_FORCED_RESET FROM node:20-alpine AS base # Install dependencies only when needed @@ -41,9 +41,6 @@ ENV NEXT_TELEMETRY_DISABLED=1 RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs -# Copy public folder if exists (optional in this project) -# COPY --from=builder /app/public ./public - # Set correct permissions for prerender cache RUN mkdir .next RUN chown nextjs:nodejs .next diff --git a/src/app/actions/auth.ts b/src/app/actions/auth.ts index 9d68cc3..e8eb315 100644 --- a/src/app/actions/auth.ts +++ b/src/app/actions/auth.ts @@ -17,7 +17,7 @@ export async function login(prevState: any, formData: FormData) { const email = emailInput ? emailInput.trim().toLowerCase() : ''; // LOG DE VERSIÓN PARA CONFIRMAR DESPLIEGUE EN COOLIFY - console.log('--- ALMEIRA WEB VERSION 1.1.0 ---'); + console.log('--- ALMEIRA WEB VERSION 1.1.0 (Reset) ---'); console.log('Intento de login para:', email); // 1. Bypass de Emergencia (Prioridad Máxima) @@ -30,7 +30,7 @@ export async function login(prevState: any, formData: FormData) { path: "/", httpOnly: true, sameSite: "lax", - secure: false, // Permitir en HTTP (No Seguro) + secure: false, // Permitir en HTTP (No Seguro) para bypass maxAge: 60 * 60 * 24 * 7, }); console.log('>>> MODO EMERGENCIA: Cookie guardada, redirigiendo a /dashboard');