From 1e49a846d9321e829d7fce34bd6b5037bb293708 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Mon, 23 Sep 2024 22:30:43 +0900 Subject: [PATCH] fix: check `caches` if it's available (#9) --- src/remix.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/remix.ts b/src/remix.ts index bc2a052..22902a3 100644 --- a/src/remix.ts +++ b/src/remix.ts @@ -26,7 +26,8 @@ export const createGetLoadContextArgs = (c: Context) => { ctx: { ...c.executionCtx, }, - caches, + // @ts-expect-error globalThis.caches is not typed + caches: globalThis.caches ? caches : undefined, }, }, request: c.req.raw,