CloudWorker
Deploy serverless JavaScript or TypeScript functions, webhooks, APIs, scheduled jobs, and persistent KV-backed workers.
serverlessfunctionscronwebhooksapi-endpointsjavascript
API Methods
deploy $0.15 Deploy a worker and get a live HTTPS URL.
Parameters
name | input | Accepted by the deploy method. |
code | input | Accepted by the deploy method. |
database_id | input | Accepted by the deploy method. |
env_vars | input | Accepted by the deploy method. |
Returns
urlfield worker_idfield kv_namespace_idfield update_code $0.02 Update worker source while preserving data bindings.
Parameters
worker_id | input | Accepted by the update_code method. |
code | input | Accepted by the update_code method. |
Returns
successfield add_cron $0.02 Attach a cron schedule to a deployed worker.
Parameters
worker_id | input | Accepted by the add_cron method. |
cron_expression | input | Accepted by the add_cron method. |
Returns
worker_idfield cron_expressionfield