How to deploy ionic browser to CDN

Hi to everyone,
I’m trying to upload the build files to my cdn but I cannot set the deploy url, I tried with:

ionic build --platform=browser --optimization --prod --aot --deployUrl=cdn_url

But also with
–deployUrl cdn_url
–deploy-url cdn_url

or also with ionic cordova build browser

But nothing, in index.html the path are relative.

How can I do that?
Thank you

I would set deployUrl inside angular.json instead of on the command line.

Thank you,
do you have an example? I don’t know where to put it inside angular.json

{
  "projects": {
    "app": {
          "configurations": {
           "something": {
              "baseHref": "/foo/",
              "deployUrl": "/foo/",