Skip to content

Commit 1e49a84

Browse files
authored
fix: check caches if it's available (#9)
1 parent 38de082 commit 1e49a84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/remix.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export const createGetLoadContextArgs = (c: Context) => {
2626
ctx: {
2727
...c.executionCtx,
2828
},
29-
caches,
29+
// @ts-expect-error globalThis.caches is not typed
30+
caches: globalThis.caches ? caches : undefined,
3031
},
3132
},
3233
request: c.req.raw,

0 commit comments

Comments
 (0)