Cloudflare Workers serverless component
Find your auth key in the Cloudflare Dashboard ➡️ click user icon in top right ➡️ My Profile ➡️ API Keys ➡️ Global API Key
Name | Type | Description |
---|---|---|
accountId | string |
accountId |
scriptName | string |
scriptName |
credentials | object required |
credentials |
zoneId | string required |
zoneId |
scriptPath | string required |
scriptPath |
route | string required |
route |
Name | Type | Description |
---|---|---|
successScript | boolean |
Success status returned by the Cloudflare Worker Script API endpoint |
resultScript | any |
Contents of the script uploaded to the Cloudflare Worker Script API endpoint |
errorsScript | any |
Errors returned by the Cloudflare Worker Script API endpoint |
messagesScript | any |
Messages returned by the Cloudflare Worker Script API endpoint |
successRoute | boolean |
Success status returned by the Cloudflare Worker Route API endpoint |
resultRoute | any |
Routes that the script are deployed on |
errorsRoute | any |
Errors returned by the Cloudflare Worker Route API endpoint |
messagesRoute | any |
Messages returned by the Cloudflare Worker Route API endpoint |
type: my-application
components:
myCloudflareWorkers:
type: cloudflare-workers
inputs:
accountId: ACCOUNT_ID_HERE
credentials:
authKey: CLOUDFLARE_AUTH_KEY_HERE
authEmail: CLOUDFLARE_AUTH_EMAIL_HERE
zoneId: ZONE_ID_HERE
scriptPath: ./index.js
route: example.com/path/*