70bf21e064
Deploy (to testing) and Test Playground Preview Worker / Deploy Playground Preview Worker (testing) (push) Has been skipped
Deploy Workers Shared Staging / Deploy Workers Shared Staging (push) Failing after 0s
Prerelease / build (push) Has been skipped
Handle Changesets / Handle Changesets (push) Has been cancelled
Semgrep OSS scan / semgrep-oss (push) Has been cancelled
23 lines
732 B
JSON
23 lines
732 B
JSON
{
|
|
"name": "workflow-test",
|
|
"main": "src/index.ts",
|
|
// An internal workflow is indicated by the binding not specifying a script name.
|
|
// This implies the workflow is exported alongside this worker in `index.ts`, which it isn't actually.
|
|
// However we don't care about this here because `getPlatformProxy()` will discard all user code anyway.
|
|
// We are simply making sure the warning shows up.
|
|
"compatibility_date": "2023-11-21",
|
|
"workflows": [
|
|
{
|
|
"binding": "MY_WORKFLOW_INTERNAL",
|
|
"name": "my-workflow-internal",
|
|
"class_name": "MyWorkflowInternal",
|
|
},
|
|
{
|
|
"binding": "MY_WORKFLOW_EXTERNAL",
|
|
"name": "my-workflow-external",
|
|
"class_name": "MyWorkflowExternal",
|
|
"script_name": "OtherWorker",
|
|
},
|
|
],
|
|
}
|