Worker component lets you deploy Cloudflare Workers to your app.
Constructor
sst.config.ts
Parameters
handler
Path to the worker handler file.
url
Enable a public URL for the worker.
link
Link resources to the worker.
domain
Set a custom domain for your worker.
Properties
url
nodes
SDK
Access linked resources in your worker:src/worker.ts
Examples
Create a worker
sst.config.ts
Add a custom domain
sst.config.ts
Link resources
sst.config.ts