Skip to content

Commit

Permalink
fix: check caches if it's available (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Sep 23, 2024
1 parent 38de082 commit 1e49a84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/remix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1e49a84

Please sign in to comment.