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
@@ -22,6 +22,13 @@ type AddMessageBody = {
const app = new Hono();
addEventListener("beforeunload", (ev: any) => {
console.error(
"ALERTA: La función se va a apagar. Razón:",
ev?.detail?.reason,
);
});
// Preflight CORS
app.options(
"*",