Cloudflare Pages - How to get Functions working locally?

For Workes & Pages, what is the name of the domain?

What is the issue or error you’re encountering

Cannot get Functions working for Cloudflare Pages in local dev

What steps have you taken to resolve the issue?

Has anyone been able to get Cloudflare Pages working locally (wrangler pages dev) whereby both static files and dynamic functions are served and working as expected? I have tried many different methods / setup but cannot get the wrangler dev env to recognise the _routes.json file locally.

Looks like I was running the wrangler pages dev command in the wrong directory:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.