AsyncLocalStorage
on Cloudflare
#3066
-
I was looking at the deployment page for platform-specific instructions. It says that for serverless platforms I should set Isn't Cloudflare Pages (+ Workers) like serverless? as in: static assets are deployed on a CDN and dynamic routes are on the edge—which spawns a worker to render the page? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@LorisSigrist can you answer this one? |
Beta Was this translation helpful? Give feedback.
-
On Cloudflare you can do either. Either disable AsyncLocalStorage, or set |
Beta Was this translation helpful? Give feedback.
Disabling AsyncLocalStorage might result in slightly better performance.
We should probably stop recommending
nodejs_compat
. The main reason it's in the docs is just that it predates theAsyncLocalStorage
option.