Files
klz-cables.com/.pnpm-store/v10/files/95/1ff11cedec8c894a4bc35637dac8dab6a41a9d9a14b46b63f6c5aeac685c34cca292dd9b655b5fc99601851912b384715f00cd3e6082d5d26670b3b776c94d
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

29 lines
827 B
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const worldwide = require('./worldwide.js');
/**
* Function that delays closing of a Vercel lambda until the provided promise is resolved.
*
* Vendored from https://www.npmjs.com/package/@vercel/functions
*/
function vercelWaitUntil(task) {
// We only flush manually in Vercel Edge runtime
// In Node runtime, we use process.on('SIGTERM') instead
if (typeof EdgeRuntime !== 'string') {
return;
}
const vercelRequestContextGlobal =
// @ts-expect-error This is not typed
worldwide.GLOBAL_OBJ[Symbol.for('@vercel/request-context')];
const ctx = vercelRequestContextGlobal?.get?.();
if (ctx?.waitUntil) {
ctx.waitUntil(task);
}
}
exports.vercelWaitUntil = vercelWaitUntil;
//# sourceMappingURL=vercelWaitUntil.js.map