Skip to content

Commit

Permalink
fix(cloudflare): missing persistence config for cache (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderniebuhr authored Oct 19, 2023
1 parent 9d3b709 commit 1665a39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilled-plants-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/cloudflare': patch
---

Fixes missing persistence setting for `cache`
2 changes: 1 addition & 1 deletion packages/cloudflare/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default function createIntegration(args?: Options): AstroIntegration {
modules: true,
script: '',
cache: true,
cachePersist: true,
cachePersist: `${typedRuntimeMode.persistTo}/cache`,
cacheWarnUsage: true,
d1Databases: D1Bindings,
d1Persist: `${typedRuntimeMode.persistTo}/d1`,
Expand Down

0 comments on commit 1665a39

Please sign in to comment.