@astrojs/cloudflare 12.4.1 → 12.5.0
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.
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -52,11 +52,11 @@ function createIntegration(args) {
|
|
|
52
52
|
}) => {
|
|
53
53
|
let session = config.session;
|
|
54
54
|
const isBuild = command === "build";
|
|
55
|
-
if (
|
|
55
|
+
if (!session?.driver) {
|
|
56
56
|
const sessionDir = isBuild ? void 0 : createCodegenDir();
|
|
57
57
|
const bindingName = args?.sessionKVBindingName ?? "SESSION";
|
|
58
58
|
logger.info(
|
|
59
|
-
`
|
|
59
|
+
`Enabling sessions with ${isBuild ? "Cloudflare KV" : "filesystem storage"}. Be sure to define a KV binding named "${bindingName}".`
|
|
60
60
|
);
|
|
61
61
|
logger.info(
|
|
62
62
|
`If you see the error "Invalid binding \`${bindingName}\`" in your build output, you need to add the binding to your wrangler config file.`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/cloudflare",
|
|
3
3
|
"description": "Deploy your site to Cloudflare Workers/Pages",
|
|
4
|
-
"version": "12.
|
|
4
|
+
"version": "12.5.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"author": "withastro",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"execa": "^8.0.1",
|
|
50
50
|
"rollup": "^4.35.0",
|
|
51
51
|
"strip-ansi": "^7.1.0",
|
|
52
|
-
"astro": "5.
|
|
52
|
+
"astro": "5.7.0",
|
|
53
53
|
"astro-scripts": "0.0.14"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|