if you ignore your problems they go away

pull/17124/head
Elliott Johnson 2 weeks ago
parent cc094c556c
commit c6da91f23b

@ -1,3 +1,4 @@
// @ts-ignore -- we don't include node types in the production build
/** @import { AsyncLocalStorage } from 'node:async_hooks' */ /** @import { AsyncLocalStorage } from 'node:async_hooks' */
/** @import { RenderContext } from '#server' */ /** @import { RenderContext } from '#server' */
@ -86,6 +87,7 @@ let als = null;
export async function init_render_context() { export async function init_render_context() {
if (als !== null) return; if (als !== null) return;
try { try {
// @ts-ignore -- we don't include node types in the production build
const { AsyncLocalStorage } = await import('node:async_hooks'); const { AsyncLocalStorage } = await import('node:async_hooks');
als = new AsyncLocalStorage(); als = new AsyncLocalStorage();
} catch {} } catch {}

Loading…
Cancel
Save