@astrojs/cloudflare 13.1.7 → 13.1.9

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.
@@ -87,7 +87,7 @@ function serverStart({
87
87
  host,
88
88
  base
89
89
  }) {
90
- const version = "13.1.7";
90
+ const version = "13.1.9";
91
91
  const localPrefix = `${colors.dim("\u2503")} Local `;
92
92
  const networkPrefix = `${colors.dim("\u2503")} Network `;
93
93
  const emptyPrefix = " ".repeat(11);
package/dist/index.js CHANGED
@@ -106,10 +106,14 @@ function createIntegration({
106
106
  experimental: {
107
107
  prerenderWorker: {
108
108
  config(_, { entryWorkerConfig }) {
109
+ const { queues, ...restWorkerConfig } = entryWorkerConfig;
109
110
  return {
110
- ...entryWorkerConfig,
111
+ ...restWorkerConfig,
111
112
  name: "prerender",
112
- ...needsImagesBinding && !entryWorkerConfig.images && {
113
+ ...queues?.producers?.length && {
114
+ queues: { producers: queues.producers }
115
+ },
116
+ ...needsImagesBinding && !restWorkerConfig.images && {
113
117
  images: { binding: imagesBindingName }
114
118
  }
115
119
  };
@@ -222,7 +226,6 @@ function createIntegration({
222
226
  config(conf) {
223
227
  if (conf.ssr) {
224
228
  conf.ssr.external = void 0;
225
- conf.ssr.noExternal = true;
226
229
  }
227
230
  }
228
231
  },
@@ -9,13 +9,6 @@ function createNodePrerenderPlugin() {
9
9
  }
10
10
  };
11
11
  },
12
- // Disable dep optimization for the `prerender` environment so dependencies
13
- // are loaded via native import() with correct import.meta.url semantics.
14
- configEnvironment(environmentName) {
15
- if (environmentName === "prerender") {
16
- return { optimizeDeps: { noDiscovery: true, include: [] } };
17
- }
18
- },
19
12
  configureServer(server) {
20
13
  server[devPrerenderMiddlewareSymbol] = true;
21
14
  }
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.1.7",
4
+ "version": "13.1.9",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "author": "withastro",
@@ -19,7 +19,6 @@
19
19
  "homepage": "https://docs.astro.build/en/guides/integrations-guide/cloudflare/",
20
20
  "exports": {
21
21
  ".": "./dist/index.js",
22
- "./info": "./dist/info.js",
23
22
  "./entrypoints/server": "./dist/entrypoints/server.js",
24
23
  "./entrypoints/preview": "./dist/entrypoints/preview.js",
25
24
  "./entrypoints/server.js": "./dist/entrypoints/server.js",
@@ -40,8 +39,8 @@
40
39
  "piccolore": "^0.1.3",
41
40
  "tinyglobby": "^0.2.15",
42
41
  "vite": "^7.3.1",
43
- "@astrojs/underscore-redirects": "1.0.3",
44
- "@astrojs/internal-helpers": "0.8.0"
42
+ "@astrojs/internal-helpers": "0.8.0",
43
+ "@astrojs/underscore-redirects": "1.0.3"
45
44
  },
46
45
  "peerDependencies": {
47
46
  "astro": "^6.0.0",
@@ -52,8 +51,8 @@
52
51
  "@types/node": "^25.2.2",
53
52
  "cheerio": "1.2.0",
54
53
  "devalue": "^5.6.3",
55
- "astro-scripts": "0.0.14",
56
- "astro": "6.1.3"
54
+ "astro": "6.1.6",
55
+ "astro-scripts": "0.0.14"
57
56
  },
58
57
  "publishConfig": {
59
58
  "provenance": true
package/dist/info.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Re-exports utilities for use by astro add CLI.
3
- * This provides a resolvable path from the user's project.
4
- */
5
- export { getLocalWorkerdCompatibilityDate } from '@cloudflare/vite-plugin';
package/dist/info.js DELETED
@@ -1,4 +0,0 @@
1
- import { getLocalWorkerdCompatibilityDate } from "@cloudflare/vite-plugin";
2
- export {
3
- getLocalWorkerdCompatibilityDate
4
- };