We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02bd63c commit 92fa94bCopy full SHA for 92fa94b
src/content/docs/workflows/build/call-workflows-from-pages.mdx
@@ -123,10 +123,11 @@ Your [Pages Function](/pages/functions/get-started/) can then make a regular `fe
123
export const onRequest: PagesFunction<Env> = async (context) => {
124
// Other code
125
let payload = {"hello": "world"}
126
- const instanceStatus = fetch("https://YOUR_WORKER.workers.dev/", {
+ const instanceStatus = await fetch("https://YOUR_WORKER.workers.dev/", {
127
method: "POST",
128
- body: JSON.stringify(payload) // Send a paylod for our Worker to pass to the Workflow
129
- }
+ body: JSON.stringify(payload) // Send a payload for our Worker to pass to the Workflow
+ })
130
+
131
return Response.json(instanceStatus);
132
};
133
```
0 commit comments