It looks like adding the following to your Cloudflare page build configuration found in
Settings>Build>Build Configuration
fixes the deployment issue
and any subsequent 404 error you may get once the page deploys.
Build command:
npx ng build --verbose --output-path dist/cloudflare
Build output:
dist/cloudflare/browser
Optionally you can change your package.json build command to be:
npx ng build --verbose --output-path dist/cloudflare
d
and leave the cloudflare build command to the deafult of ng build.
If you are building successfully but getting a 404 change the build output to dist/cloudflare/browser