I am using Cloudflare pages with hugo. And since now Cloudflare lets me create staging builds i wonder if i can actually change the staging build command.
So for example in regualar build i have the domain example.com but in the staging build i want to use the Cloudflare pages url for example whatever.staging.pages.com
In hugo i can easily set different urls for different builds. QUestion is with Cloudflare pages how can control the command to build the staging site. The hugo command is hugo --environment staging
Any idea on how to do this with pages as i see no option to control the build command in staging. you can read more about this here
As per the guide you specify what command you want to run where. If you want to run that command only on the staging branch you can and then run the normal one elsewhere
Just a feedback if possible it is much easier to just define the hugo build command for different enviornment. And i hope Cloudflare pages will consider this for future.