Skip to content

Commit 564f192

Browse files
authored
docs: note Node.js compat flag for AsyncLocalStorage (#60)
1 parent 66f0b8c commit 564f192

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,9 @@ export const loader = () => {
376376
}
377377
```
378378

379+
> [!NOTE]
380+
> To use AsyncLocalStorage on Cloudflare Workers, enable [the Node.js compatibility flag](https://developers.cloudflare.com/workers/runtime-apis/nodejs).
381+
379382
## Auth middleware for React Router routes
380383

381384
If you want to add Auth Middleware, e.g. Basic Auth middleware, please be careful that users can access the protected pages with SPA tradition. To prevent this, add a `loader` to the page:

0 commit comments

Comments
 (0)