@astrojs/cloudflare 7.6.0 → 7.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@ export default function createIntegration(args) {
41
41
  args.runtime.persistTo === undefined) {
42
42
  runtimeMode = { mode: 'local', persistTo: '.wrangler/state/v3' };
43
43
  }
44
- else {
44
+ else if (args?.runtime) {
45
45
  runtimeMode = args?.runtime;
46
46
  }
47
47
  return {
@@ -100,7 +100,7 @@ export default function createIntegration(args) {
100
100
  modules: true,
101
101
  script: '',
102
102
  cache: true,
103
- cachePersist: true,
103
+ cachePersist: `${typedRuntimeMode.persistTo}/cache`,
104
104
  cacheWarnUsage: true,
105
105
  d1Databases: D1Bindings,
106
106
  d1Persist: `${typedRuntimeMode.persistTo}/d1`,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "//comment": "test changeset-bot",
3
3
  "name": "@astrojs/cloudflare",
4
4
  "description": "Deploy your site to Cloudflare Workers/Pages",
5
- "version": "7.6.0",
5
+ "version": "7.6.1",
6
6
  "type": "module",
7
7
  "types": "./dist/index.d.ts",
8
8
  "author": "withastro",