@astrojs/cloudflare 13.0.0-beta.11 → 13.0.0-beta.13

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.
@@ -80,7 +80,7 @@ function serverStart({
80
80
  host,
81
81
  base
82
82
  }) {
83
- const version = "13.0.0-beta.11";
83
+ const version = "13.0.0-beta.13";
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, rm, stat } from "node:fs/promises";
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",
@@ -205,7 +206,8 @@ function createIntegration({
205
206
  name: "@astrojs/cloudflare",
206
207
  adapterFeatures: {
207
208
  buildOutput: "server",
208
- middlewareMode: "classic"
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
  }
@@ -31,6 +31,7 @@ function createCloudflarePrerenderer({
31
31
  outDir: fileURLToPath(serverDir)
32
32
  },
33
33
  root: fileURLToPath(root),
34
+ logLevel: "error",
34
35
  preview: {
35
36
  host: "localhost",
36
37
  port: 0,
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.11",
4
+ "version": "13.0.0-beta.13",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "author": "withastro",
@@ -35,11 +35,11 @@
35
35
  "types.d.ts"
36
36
  ],
37
37
  "dependencies": {
38
- "@cloudflare/vite-plugin": "^1.25.2",
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",
42
- "@astrojs/internal-helpers": "0.8.0-beta.1",
42
+ "@astrojs/internal-helpers": "0.8.0-beta.2",
43
43
  "@astrojs/underscore-redirects": "1.0.0"
44
44
  },
45
45
  "peerDependencies": {
@@ -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.17",
54
+ "astro": "6.0.0-beta.19",
55
55
  "astro-scripts": "0.0.14"
56
56
  },
57
57
  "publishConfig": {