You don’t need the bespoke Wrangler workflow now with Pages Functions [0]. Just drop the scripts in the `api/` directory in the page repo.
[0]: https://developers.cloudflare.com/pages/platform/functions/
[0]: https://developers.cloudflare.com/pages/platform/functions/