@astrojs/cloudflare 13.0.0-beta.10 → 13.0.0-beta.12
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/entrypoints/preview.js +1 -1
- package/dist/index.js +6 -7
- package/dist/prerenderer.js +1 -0
- package/package.json +3 -3
|
@@ -80,7 +80,7 @@ function serverStart({
|
|
|
80
80
|
host,
|
|
81
81
|
base
|
|
82
82
|
}) {
|
|
83
|
-
const version = "13.0.0-beta.
|
|
83
|
+
const version = "13.0.0-beta.12";
|
|
84
84
|
const localPrefix = `${colors.dim("\u2503")} Local `;
|
|
85
85
|
const networkPrefix = `${colors.dim("\u2503")} Network `;
|
|
86
86
|
const emptyPrefix = " ".repeat(11);
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createReadStream, existsSync, readFileSync } from "node:fs";
|
|
2
|
-
import { appendFile,
|
|
2
|
+
import { appendFile, stat } from "node:fs/promises";
|
|
3
3
|
import { createInterface } from "node:readline/promises";
|
|
4
4
|
import { removeLeadingForwardSlash } from "@astrojs/internal-helpers/path";
|
|
5
5
|
import { createRedirectsFromAstroRoutes, printAsRedirects } from "@astrojs/underscore-redirects";
|
|
@@ -131,7 +131,8 @@ function createIntegration({
|
|
|
131
131
|
"astro > piccolore",
|
|
132
132
|
"astro/app",
|
|
133
133
|
"astro/assets",
|
|
134
|
-
"astro/compiler-runtime"
|
|
134
|
+
"astro/compiler-runtime",
|
|
135
|
+
"astro/app/entrypoint/dev"
|
|
135
136
|
],
|
|
136
137
|
exclude: [
|
|
137
138
|
"unstorage/drivers/cloudflare-kv-binding",
|
|
@@ -204,8 +205,9 @@ function createIntegration({
|
|
|
204
205
|
setAdapter({
|
|
205
206
|
name: "@astrojs/cloudflare",
|
|
206
207
|
adapterFeatures: {
|
|
207
|
-
|
|
208
|
-
|
|
208
|
+
buildOutput: "server",
|
|
209
|
+
middlewareMode: "classic",
|
|
210
|
+
preserveBuildClientDir: true
|
|
209
211
|
},
|
|
210
212
|
entrypointResolution: "auto",
|
|
211
213
|
previewEntrypoint: "@astrojs/cloudflare/entrypoints/preview",
|
|
@@ -315,9 +317,6 @@ function createIntegration({
|
|
|
315
317
|
logger.error("Failed to write _redirects file");
|
|
316
318
|
}
|
|
317
319
|
}
|
|
318
|
-
if (_isFullyStatic) {
|
|
319
|
-
await rm(_config.build.server, { recursive: true, force: true });
|
|
320
|
-
}
|
|
321
320
|
delete process.env.CLOUDFLARE_VITE_BUILD;
|
|
322
321
|
}
|
|
323
322
|
}
|
package/dist/prerenderer.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/cloudflare",
|
|
3
3
|
"description": "Deploy your site to Cloudflare Workers",
|
|
4
|
-
"version": "13.0.0-beta.
|
|
4
|
+
"version": "13.0.0-beta.12",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"author": "withastro",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"types.d.ts"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@cloudflare/vite-plugin": "^1.25.
|
|
38
|
+
"@cloudflare/vite-plugin": "^1.25.6",
|
|
39
39
|
"piccolore": "^0.1.3",
|
|
40
40
|
"tinyglobby": "^0.2.15",
|
|
41
41
|
"vite": "^7.3.1",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@types/node": "^25.2.2",
|
|
52
52
|
"cheerio": "1.2.0",
|
|
53
53
|
"devalue": "^5.6.3",
|
|
54
|
-
"astro": "6.0.0-beta.
|
|
54
|
+
"astro": "6.0.0-beta.18",
|
|
55
55
|
"astro-scripts": "0.0.14"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|