From 0cdacc16c18939bd2b19c7cfe8bfc470bfe7449b Mon Sep 17 00:00:00 2001
From: Alexander Niebuhr
Date: Thu, 22 May 2025 18:51:22 +0200
Subject: [PATCH 01/14] docs(cloudflare): custom entryfile
---
.../guides/integrations-guide/cloudflare.mdx | 86 +++++++++++++++++++
1 file changed, 86 insertions(+)
diff --git a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
index d3c30ec4b033b..77578b86da0f8 100644
--- a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
+++ b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
@@ -248,6 +248,92 @@ export default defineConfig({
});
```
+### `entryfilePath`
+
+**Type:** `string`
+
+
+The `entryfilePath` option allows you to specify the path to a custom entry file. By default, the adapter uses a generic entry file, which only supports the `fetch` handler, but you can change it to support other [Cloudflare invocation handlers](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs) as well. This is useful if you want to use e.g. Durable Objects, Cloudflare Queues, Scheduled Invocations, etc.
+
+```js title="astro.config.mjs" "src/worker.ts"
+export default defineConfig({
+ adapter: cloudflare({
+ entryfilePath: 'src/worker.ts'
+ }),
+});
+```
+
+The custom entry file must export the `createExports` function, with a `default` export including all the handlers. As an template you can use the following example:
+
+```ts title="src/worker.ts"
+import type { SSRManifest } from 'astro';
+
+import { App } from 'astro/app';
+import { handle } from '@astrojs/cloudflare/handler'
+
+export function createExports(manifest: SSRManifest) {
+ const app = new App(manifest);
+ return {
+ default: {
+ async fetch(request, env, ctx) {
+ return handle(manifest, app, request, env, ctx);
+ },
+ async scheduled(controller, env, ctx) {
+ ctx.waitUntil(doSomeTaskOnASchedule());
+ },
+ async queue(batch, _env) {
+ let messages = JSON.stringify(batch.messages);
+ console.log(`consumed from our queue: ${messages}`);
+ },
+ } satisfies ExportedHandler
+ }
+}
+```
+
+### `entryfileExports`
+
+**Type:** `string[]`
+
+
+The `entryfileExports` option allows you to specify the exports from a custom entry file. By default, the adapter uses `["default"]`. If you have defined named exports in your custom entry file, you can specify them here. This is useful if you want to use e.g. Durable Objects, RPC, etc.
+
+```js title="astro.config.mjs" "'DurableObject', 'RPC'"
+export default defineConfig({
+ adapter: cloudflare({
+ entryfileExports: ['MyDurableObject', 'RPC']
+ }),
+});
+```
+
+The custom entry file must export the `createExports` function, with any named export. As an template you can use the following example:
+
+```ts title="src/worker.ts"
+import type { SSRManifest } from 'astro';
+
+import { App } from 'astro/app';
+import { handle } from '@astrojs/cloudflare/handler'
+import { DurableObject } from 'cloudflare:workers';
+
+class MyDurableObject extends DurableObject {
+ constructor(ctx: DurableObjectState, env: Env) {
+ // Required, as we're extending the base class.
+ super(ctx, env)
+ }
+}
+
+export function createExports(manifest: SSRManifest) {
+ const app = new App(manifest);
+ return {
+ default: {
+ async fetch(request, env, ctx) {
+ return handle(manifest, app, request, env, ctx);
+ },
+ } satisfies ExportedHandler,
+ MyDurableObject: MyDurableObject,
+ }
+}
+```
+
## Cloudflare runtime
### Usage
From 42e81bd2ec6b4e7295713938f89b4edd1064dce7 Mon Sep 17 00:00:00 2001
From: Alexander Niebuhr
Date: Sat, 7 Jun 2025 10:47:17 +0200
Subject: [PATCH 02/14] chore: update based on changes in the main pr
---
.../guides/integrations-guide/cloudflare.mdx | 72 ++++++-------------
1 file changed, 21 insertions(+), 51 deletions(-)
diff --git a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
index 77578b86da0f8..030a780fb6bb0 100644
--- a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
+++ b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
@@ -248,65 +248,31 @@ export default defineConfig({
});
```
-### `entryfilePath`
+### `workerEntryPoint`
-**Type:** `string`
+**Type:** `{path: string | URL, exports: string[]}`
+**Default:** `{ path: '@astrojs/cloudflare/entrypoints/server.js', exports: ['default'] }`
+
-The `entryfilePath` option allows you to specify the path to a custom entry file. By default, the adapter uses a generic entry file, which only supports the `fetch` handler, but you can change it to support other [Cloudflare invocation handlers](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs) as well. This is useful if you want to use e.g. Durable Objects, Cloudflare Queues, Scheduled Invocations, etc.
+The `workerEntryPoint.path` option allows you to specify the path to a custom entry file. By default, the adapter uses a generic entry file, which only supports the `fetch` handler, but you can change it to support other [Cloudflare invocation handlers](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs). This is useful if you want to use features that require other handlers (e.g. Durable Objects, Cloudflare Queues, Scheduled Invocations). The `workerEntryPoint.exports` option allows you to specify the exports from a custom entry file. By default, the adapter uses `["default"]`. If you have defined named exports in your custom entry file, you can specify them here. This is useful if you want to use (e.g. Durable Objects, RPC)
-```js title="astro.config.mjs" "src/worker.ts"
-export default defineConfig({
- adapter: cloudflare({
- entryfilePath: 'src/worker.ts'
- }),
-});
-```
-
-The custom entry file must export the `createExports` function, with a `default` export including all the handlers. As an template you can use the following example:
+The custom entry file must export the `createExports` function, with a `default` export including all the handlers you need. The following example entry file exports all the necessary handlers required for a custom `console.log`:
-```ts title="src/worker.ts"
-import type { SSRManifest } from 'astro';
-
-import { App } from 'astro/app';
-import { handle } from '@astrojs/cloudflare/handler'
-
-export function createExports(manifest: SSRManifest) {
- const app = new App(manifest);
- return {
- default: {
- async fetch(request, env, ctx) {
- return handle(manifest, app, request, env, ctx);
- },
- async scheduled(controller, env, ctx) {
- ctx.waitUntil(doSomeTaskOnASchedule());
- },
- async queue(batch, _env) {
- let messages = JSON.stringify(batch.messages);
- console.log(`consumed from our queue: ${messages}`);
- },
- } satisfies ExportedHandler
- }
-}
-```
-
-### `entryfileExports`
-
-**Type:** `string[]`
-
-
-The `entryfileExports` option allows you to specify the exports from a custom entry file. By default, the adapter uses `["default"]`. If you have defined named exports in your custom entry file, you can specify them here. This is useful if you want to use e.g. Durable Objects, RPC, etc.
+```js title="astro.config.mjs"
+import cloudflare from '@astrojs/cloudflare';
+import { defineConfig } from 'astro/config';
-```js title="astro.config.mjs" "'DurableObject', 'RPC'"
export default defineConfig({
- adapter: cloudflare({
- entryfileExports: ['MyDurableObject', 'RPC']
- }),
+ adapter: cloudflare({
+ workerEntryPoint: {
+ path: 'src/worker.ts',
+ exports: ['default','MyDurableObject']
+ }
+ }),
});
```
-The custom entry file must export the `createExports` function, with any named export. As an template you can use the following example:
-
```ts title="src/worker.ts"
import type { SSRManifest } from 'astro';
@@ -316,7 +282,6 @@ import { DurableObject } from 'cloudflare:workers';
class MyDurableObject extends DurableObject {
constructor(ctx: DurableObjectState, env: Env) {
- // Required, as we're extending the base class.
super(ctx, env)
}
}
@@ -326,10 +291,15 @@ export function createExports(manifest: SSRManifest) {
return {
default: {
async fetch(request, env, ctx) {
+ await env.MY_QUEUE.send("log");
return handle(manifest, app, request, env, ctx);
},
+ async queue(batch, _env) {
+ let messages = JSON.stringify(batch.messages);
+ console.log(`consumed from our queue: ${messages}`);
+ }
} satisfies ExportedHandler,
- MyDurableObject: MyDurableObject,
+ MyDurableObject: MyDurableObject,
}
}
```
From d289c79a15dca0e87cdfb103938917afcf0c9430 Mon Sep 17 00:00:00 2001
From: Alexander Niebuhr
Date: Tue, 10 Jun 2025 07:20:34 +0200
Subject: [PATCH 03/14] chore: add random extra line
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
---
src/content/docs/en/guides/integrations-guide/cloudflare.mdx | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
index 030a780fb6bb0..6c70ba12e5ce7 100644
--- a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
+++ b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
@@ -250,6 +250,7 @@ export default defineConfig({
### `workerEntryPoint`
+
**Type:** `{path: string | URL, exports: string[]}`
**Default:** `{ path: '@astrojs/cloudflare/entrypoints/server.js', exports: ['default'] }`
From 23617639a5d2a53fe7357b814e4adfe799000135 Mon Sep 17 00:00:00 2001
From: Alexander Niebuhr
Date: Tue, 10 Jun 2025 07:21:47 +0200
Subject: [PATCH 04/14] chore: update structure
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
---
.../guides/integrations-guide/cloudflare.mdx | 47 ++++++++++++++++++-
1 file changed, 46 insertions(+), 1 deletion(-)
diff --git a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
index 6c70ba12e5ce7..86c48945bcaed 100644
--- a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
+++ b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
@@ -256,7 +256,52 @@ export default defineConfig({
-The `workerEntryPoint.path` option allows you to specify the path to a custom entry file. By default, the adapter uses a generic entry file, which only supports the `fetch` handler, but you can change it to support other [Cloudflare invocation handlers](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs). This is useful if you want to use features that require other handlers (e.g. Durable Objects, Cloudflare Queues, Scheduled Invocations). The `workerEntryPoint.exports` option allows you to specify the exports from a custom entry file. By default, the adapter uses `["default"]`. If you have defined named exports in your custom entry file, you can specify them here. This is useful if you want to use (e.g. Durable Objects, RPC)
+
+A configuration object to specify the [workerEntryPoint](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/rpc/) for your Cloudflare Worker when you use the `astro build` command.
+
+It allows you to optionally specify both a custom file `path` and `exports`:
+
+```js title="astro.config.mjs"
+import cloudflare from '@astrojs/cloudflare';
+import { defineConfig } from 'astro/config';
+
+export default defineConfig({
+ adapter: cloudflare({
+ workerEntryPoint: {
+ path: 'src/worker.ts',
+ exports: ['default','MyDurableObject']
+ }
+ }),
+});
+```
+
+### `workerEntryPoint.path`
+
+
+
+**Type:** `string`
+**Default:** `@astrojs/cloudflare/entrypoints/server.js`
+
+
+
+The path to the entry file. This should be a relative path from the root of your Astro project.
+
+By default, the adapter uses a generic entry file, which only supports the `fetch` handler.
+
+To support other [Cloudflare invocation handlers](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs), you can create a custom file to use as the entry point. This is useful if you want to use features that require other handlers (e.g. Durable Objects, Cloudflare Queues, Scheduled Invocations).
+
+#### `workerEntryPoint.exports`
+
+
+
+**Type:** `[]`
+**Default:** `['default']`
+
+
+
+The exports to use for the entry file.
+
+Provide any additional defined named exports of your entry file (e.g. `DurableObjects`) alongside your file's default exports. If not provided, only default exports will be included.
The custom entry file must export the `createExports` function, with a `default` export including all the handlers you need. The following example entry file exports all the necessary handlers required for a custom `console.log`:
From 1d4c63536d78521008a40797f2310dee22a785a2 Mon Sep 17 00:00:00 2001
From: Alexander Niebuhr
Date: Tue, 10 Jun 2025 07:22:14 +0200
Subject: [PATCH 05/14] chore: update structure
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
---
.../en/guides/integrations-guide/cloudflare.mdx | 16 +++-------------
1 file changed, 3 insertions(+), 13 deletions(-)
diff --git a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
index 86c48945bcaed..78df0ff5f4c70 100644
--- a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
+++ b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
@@ -303,21 +303,11 @@ The exports to use for the entry file.
Provide any additional defined named exports of your entry file (e.g. `DurableObjects`) alongside your file's default exports. If not provided, only default exports will be included.
-The custom entry file must export the `createExports` function, with a `default` export including all the handlers you need. The following example entry file exports all the necessary handlers required for a custom `console.log`:
+#### Creating a custom Cloudflare Worker entry file
-```js title="astro.config.mjs"
-import cloudflare from '@astrojs/cloudflare';
-import { defineConfig } from 'astro/config';
+The custom entry file must export the `createExports` function, with a `default` export including all the handlers you need.
-export default defineConfig({
- adapter: cloudflare({
- workerEntryPoint: {
- path: 'src/worker.ts',
- exports: ['default','MyDurableObject']
- }
- }),
-});
-```
+The following example entry file exports all the necessary handlers required for a custom `console.log`:
```ts title="src/worker.ts"
import type { SSRManifest } from 'astro';
From e71466a5eb6b24b2654a715473b50bf840091a7b Mon Sep 17 00:00:00 2001
From: Alexander Niebuhr
Date: Wed, 11 Jun 2025 07:26:27 +0200
Subject: [PATCH 06/14] chore: fix since component
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
---
src/content/docs/en/guides/integrations-guide/cloudflare.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
index 78df0ff5f4c70..9031e40863267 100644
--- a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
+++ b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
@@ -253,7 +253,7 @@ export default defineConfig({
**Type:** `{path: string | URL, exports: string[]}`
**Default:** `{ path: '@astrojs/cloudflare/entrypoints/server.js', exports: ['default'] }`
-
+
From 86acbff4b488b6c3847d860da4cc11b6abccfe19 Mon Sep 17 00:00:00 2001
From: Alexander Niebuhr
Date: Wed, 11 Jun 2025 07:26:55 +0200
Subject: [PATCH 07/14] chore: update docs for namedExports
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
---
.../docs/en/guides/integrations-guide/cloudflare.mdx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
index 9031e40863267..6eaf05d5b0ae4 100644
--- a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
+++ b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
@@ -290,7 +290,7 @@ By default, the adapter uses a generic entry file, which only supports the `fetc
To support other [Cloudflare invocation handlers](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs), you can create a custom file to use as the entry point. This is useful if you want to use features that require other handlers (e.g. Durable Objects, Cloudflare Queues, Scheduled Invocations).
-#### `workerEntryPoint.exports`
+#### `workerEntryPoint.namedExports`
@@ -299,9 +299,9 @@ To support other [Cloudflare invocation handlers](https://developers.cloudflare.
-The exports to use for the entry file.
+An array of named exports to use for the entry file.
-Provide any additional defined named exports of your entry file (e.g. `DurableObjects`) alongside your file's default exports. If not provided, only default exports will be included.
+Provide any additional defined named exports of your [custom entry file](#creating-a-custom-cloudflare-worker-entry-file) (e.g. `DurableObjects`). If not provided, only default exports will be included.
#### Creating a custom Cloudflare Worker entry file
From 5ce21e7a9a88429aa6af667000296be2ef098b3c Mon Sep 17 00:00:00 2001
From: Alexander Niebuhr
Date: Wed, 11 Jun 2025 07:27:12 +0200
Subject: [PATCH 08/14] chore: update docs for namedExports
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
---
src/content/docs/en/guides/integrations-guide/cloudflare.mdx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
index 6eaf05d5b0ae4..6aeb649503e74 100644
--- a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
+++ b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
@@ -259,7 +259,7 @@ export default defineConfig({
A configuration object to specify the [workerEntryPoint](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/rpc/) for your Cloudflare Worker when you use the `astro build` command.
-It allows you to optionally specify both a custom file `path` and `exports`:
+It allows you to optionally specify both a custom file `path` and `namedExports`:
```js title="astro.config.mjs"
import cloudflare from '@astrojs/cloudflare';
@@ -269,7 +269,7 @@ export default defineConfig({
adapter: cloudflare({
workerEntryPoint: {
path: 'src/worker.ts',
- exports: ['default','MyDurableObject']
+ namedExports: ['MyDurableObject']
}
}),
});
From 9cce170ee1339c3167fd8546c12ae7485017690c Mon Sep 17 00:00:00 2001
From: Alexander Niebuhr
Date: Thu, 12 Jun 2025 20:54:06 +0200
Subject: [PATCH 09/14] chore: update to show namedExports type
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
---
src/content/docs/en/guides/integrations-guide/cloudflare.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
index 6aeb649503e74..554d0fee63be9 100644
--- a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
+++ b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
@@ -252,7 +252,7 @@ export default defineConfig({
**Type:** `{path: string | URL, exports: string[]}`
-**Default:** `{ path: '@astrojs/cloudflare/entrypoints/server.js', exports: ['default'] }`
+**Default:** `{ path: '@astrojs/cloudflare/entrypoints/server.js', namedExports: [] }`
From 3ce14a9ff9023248ff829584602ff98db23ce498 Mon Sep 17 00:00:00 2001
From: Alexander Niebuhr
Date: Thu, 12 Jun 2025 20:54:29 +0200
Subject: [PATCH 10/14] chore: stylistics
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
---
src/content/docs/en/guides/integrations-guide/cloudflare.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
index 554d0fee63be9..2f1bb4b182c71 100644
--- a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
+++ b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
@@ -305,7 +305,7 @@ Provide any additional defined named exports of your [custom entry file](#creati
#### Creating a custom Cloudflare Worker entry file
-The custom entry file must export the `createExports` function, with a `default` export including all the handlers you need.
+The custom entry file must export the `createExports()` function, with a `default` export including all the handlers you need.
The following example entry file exports all the necessary handlers required for a custom `console.log`:
From ffe0ae5571a3b32921c065dff4b1f929cc69eec6 Mon Sep 17 00:00:00 2001
From: Alexander Niebuhr
Date: Thu, 12 Jun 2025 20:55:04 +0200
Subject: [PATCH 11/14] chore: exports to namedExports
---
src/content/docs/en/guides/integrations-guide/cloudflare.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
index 2f1bb4b182c71..2fb963ee77c03 100644
--- a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
+++ b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
@@ -251,7 +251,7 @@ export default defineConfig({
### `workerEntryPoint`
-**Type:** `{path: string | URL, exports: string[]}`
+**Type:** `{path: string | URL, namedExports: string[]}`
**Default:** `{ path: '@astrojs/cloudflare/entrypoints/server.js', namedExports: [] }`
From 3422a198de5087a83612450579f364c65fed4695 Mon Sep 17 00:00:00 2001
From: Alexander Niebuhr
Date: Thu, 19 Jun 2025 11:00:16 +0200
Subject: [PATCH 12/14] chore: update docs
Co-authored-by: Matt Kane
---
src/content/docs/en/guides/integrations-guide/cloudflare.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
index 2fb963ee77c03..c45ca0f5b5b87 100644
--- a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
+++ b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
@@ -307,7 +307,7 @@ Provide any additional defined named exports of your [custom entry file](#creati
The custom entry file must export the `createExports()` function, with a `default` export including all the handlers you need.
-The following example entry file exports all the necessary handlers required for a custom `console.log`:
+The following example entry file registers a Durable Object and a queue handler:
```ts title="src/worker.ts"
import type { SSRManifest } from 'astro';
From b1df799fcb1f589ddbb6d7fa4edefd0cb250b221 Mon Sep 17 00:00:00 2001
From: Alexander Niebuhr
Date: Thu, 19 Jun 2025 11:00:27 +0200
Subject: [PATCH 13/14] chore: update docs
Co-authored-by: Matt Kane
---
src/content/docs/en/guides/integrations-guide/cloudflare.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
index c45ca0f5b5b87..54ca1c7c3005b 100644
--- a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
+++ b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
@@ -332,7 +332,7 @@ export function createExports(manifest: SSRManifest) {
},
async queue(batch, _env) {
let messages = JSON.stringify(batch.messages);
- console.log(`consumed from our queue: ${messages}`);
+ console.log(`consumed from our queue: ${messages}`);
}
} satisfies ExportedHandler,
MyDurableObject: MyDurableObject,
From ae11c10c7f6b598f7981b62ff5cca6eea35523c8 Mon Sep 17 00:00:00 2001
From: Alexander Niebuhr
Date: Thu, 19 Jun 2025 11:00:48 +0200
Subject: [PATCH 14/14] chore: update docs
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
---
src/content/docs/en/guides/integrations-guide/cloudflare.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
index 54ca1c7c3005b..ebb589dc3490d 100644
--- a/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
+++ b/src/content/docs/en/guides/integrations-guide/cloudflare.mdx
@@ -305,7 +305,7 @@ Provide any additional defined named exports of your [custom entry file](#creati
#### Creating a custom Cloudflare Worker entry file
-The custom entry file must export the `createExports()` function, with a `default` export including all the handlers you need.
+The custom entry file must export the `createExports()` function with a `default` export including all the handlers you need.
The following example entry file registers a Durable Object and a queue handler: