Skip to content

Commit 488c3a2

Browse files
committed
fix component import
1 parent 56f9abd commit 488c3a2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/content/docs/workflows/build/call-workflows-from-pages.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar:
55
order: 11
66
---
77

8-
import { TypeScriptExample } from "~/components";
8+
import { WranglerConfig, TypeScriptExample } from "~/components";
99

1010
You can bind and trigger Workflows from [Pages Functions](/pages/functions/) by deploying a Workers project with your Workflow definition and then invoking that Worker using [service bindings](/pages/functions/bindings/#service-bindings) or a standard `fetch()` call.
1111

@@ -28,13 +28,11 @@ To do this, you:
2828
For example, if you have a Worker called `workflows-starter`, you would create a new Service Binding in your Pages project as follows, ensuring that the `service` name matches the name of the Worker your Workflow is defined in:
2929

3030
<WranglerConfig>
31-
3231
```toml
3332
services = [
3433
{ binding = "WORKFLOW_SERVICE", service = "workflows-starter" }
3534
]
3635
```
37-
3836
</WranglerConfig>
3937

4038
Your Worker can expose a specific method (or methods) that only other Workers or Pages Functions can call over the Service Binding.

0 commit comments

Comments
 (0)