Deploy dry-run for Cloudflare Pages

In Cloudflare Workers, there is a handy wrangler command wrangler deploy --dry-run which compiles your project without deploying it. https://developers.cloudflare.com/workers/wrangler/commands/#deploy

Is there a way to compile Cloudflare Pages project without deploying it?
wrangler pages deploy command apparently doesn’t have the --dry-run flag https://developers.cloudflare.com/workers/wrangler/commands/#deploy-1

wrangler pages functions build <dir>

1 Like

Amazing! It works! Thank you very much :+1:
Looks like some undocumented feature :slight_smile:
Really helps to understand how Pages Functions work, how they are compiled.

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