Skip to content

Commit

Permalink
fix: actually expose platform.caches (#5887)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikg committed Aug 16, 2022
1 parent b418d5b commit 9aa3aed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/smooth-bags-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-cloudflare-workers': patch
---

expose caches on platform
2 changes: 1 addition & 1 deletion packages/adapter-cloudflare-workers/files/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default {

// dynamically-generated pages
return await server.respond(req, {
platform: { env, context },
platform: { env, context, caches },
getClientAddress() {
return req.headers.get('cf-connecting-ip');
}
Expand Down

0 comments on commit 9aa3aed

Please sign in to comment.