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./functions directory. I also wasn't able to find anything in the Pages documentation.