Skip to content

Commit 3058b0b

Browse files
committed
docs: add required abort signal feature
1 parent 608fdb0 commit 3058b0b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

site/src/content/docs/actors/quickstart/cloudflare-workers.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Configure your `wrangler.json` for Cloudflare Workers:
111111
"name": "my-rivetkit-app",
112112
"main": "src/index.ts",
113113
"compatibility_date": "2025-01-20",
114-
"compatibility_flags": ["nodejs_compat"],
114+
"compatibility_flags": ["nodejs_compat", "enable_request_signal"],
115115
"migrations": [
116116
{
117117
"tag": "v1",
@@ -135,6 +135,10 @@ Configure your `wrangler.json` for Cloudflare Workers:
135135
}
136136
```
137137

138+
<Note>
139+
`enable_request_signal` compatibility flags is required if using SSE. Without it, SSE connections will never abort.
140+
</Note>
141+
138142
Start the development server:
139143

140144
```sh

site/src/content/docs/integrations/cloudflare-workers.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Update your `wrangler.json` configuration to support `ACTOR_DO` and `ACTOR_KV` b
8383
"name": "my-rivetkit-app",
8484
"main": "src/index.ts",
8585
"compatibility_date": "2025-01-20",
86-
"compatibility_flags": ["nodejs_compat"],
86+
"compatibility_flags": ["nodejs_compat", "enable_request_signal"],
8787
"migrations": [
8888
{
8989
"tag": "v1",
@@ -107,6 +107,10 @@ Update your `wrangler.json` configuration to support `ACTOR_DO` and `ACTOR_KV` b
107107
}
108108
```
109109

110+
<Note>
111+
`enable_request_signal` compatibility flags is required if using SSE. Without it, SSE connections will never abort.
112+
</Note>
113+
110114
**Configuration Requirements:**
111115

112116
- `ACTOR_DO` - Durable Object binding for actor persistence

0 commit comments

Comments
 (0)