I hope to get more answers here :) (open issue in angular-cli as well)
as of angular 13, it says that deployUrl
is being deprecated.
in our project, we define deployUrl
(in angular.json) as our CDN address, which is then added to all the images and scripts (in index.html and CSS files).
This allows us to load our assets from our CDN, while sending the HTTP requests to our server (the domain that we ran at, while baseHref
is '/').
Setting the baseHref
to be the CDN domain (without deployUrl
) causes our app to send all of the HTTP requests to the CDN instead of to our domain - which breaks the app.
Once deployUrl
is deprecated, how can we keep having the CDN defined (like publicPath
in WebPack) without breaking the app's HTTP requests?