Workflows don't run on Pages. You can deploy the workflow to a Worker and call it from pages by bind

Workflows don't run on Pages. You can deploy the workflow to a Worker and call it from pages by binding - https://developers.cloudflare.com/workflows/build/call-workflows-from-pages/
Cloudflare Docs
You can bind and trigger Workflows from Pages Functions by deploying a Workers project with your Workflow definition and then invoking that Worker using service bindings or a standard fetch() call.
Was this page helpful?