Follow the Restate Cloudflare Workers quickstart to set up your project.
CLI
wrangler init
template, as long
as you have the nodejs_compat
compatibility flag set in wrangler.toml
.
The SDK should be imported with the fetch
component:
wrangler deploy
, and register your deployed service:
Local development
A Workers dev server can be started on port 9080 usingwrangler dev
only serves over HTTP1.1, so you’ll need to register a local service with: