functions/ in deploy directory?

It seems that I can only get wrangler to upload Functions when there's a functions/ directory in the current directory. If I have a functions/ in the deploy directory, and I try to deploy it from another directory, like npx wrangler pages deploy _site, wrangler seems to skip the Functions.

Is this intended? Is this expected?
Was this page helpful?