Note from 3 August 2022

To have different builds for #Cloudflare Pages previews, I found if-env and the CF_PAGES_BRANCH variable:

{
"scripts": {
"build": "if-env CF_PAGES_BRANCH=main && npm run main || npm run preview"
}
}