Pages local development with Wrangler - Static assets in /dist and Functions in /functions - How to
I'm looking to debug a Pages Function locally using Wrangler. The
This folder structure deploys successfully to Cloudflare, however I can't figure out how to get it running locally. I wasn't able to see any commands that I can point to the
Any help?
wrangler pages dev [directory] command takes in the dir containing the static Pages assets, which are compiled to /dist in my case, however in doing so, it does not see the /functions dir since it's outside of /dist.This folder structure deploys successfully to Cloudflare, however I can't figure out how to get it running locally. I wasn't able to see any commands that I can point to the
/functions directory. I also wasn't able to find anything in the Pages documentation.Any help?