Se añade un event listener que loggea cuando se va a apagar la función
Deploy Function / deploy (push) Successful in 22s
Deploy Migrations to Production / deploy (push) Successful in 11s

This commit is contained in:
2026-02-19 13:06:34 -06:00
parent a028fd459f
commit 38e1488c8c
4 changed files with 28 additions and 0 deletions
@@ -9,6 +9,13 @@ import {
type StructuredResponseOptions,
} from "../_shared/openai-service.ts";
addEventListener("beforeunload", (ev: any) => {
console.error(
"ALERTA: La función se va a apagar. Razón:",
ev?.detail?.reason,
);
});
/**
* JSON input signature (when `Content-Type: application/json`)
*