Skip to content

feat(@angular-devkit/build-angular): deprecate deployUrl #21537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 10, 2021
Merged

feat(@angular-devkit/build-angular): deprecate deployUrl #21537

merged 1 commit into from
Aug 10, 2021

Conversation

alan-agius4
Copy link
Collaborator

@alan-agius4 alan-agius4 commented Aug 9, 2021

With this change we deprecate deployUrl which in many case causes unexpected and undesired behaviour. Such as #12322, #21432 and #6666. This is because one of the drawbacks of deploy Url is that this url needs to be injected all over the bundles.

This option was previously introduced to handle application that only assets are hosted on a CDN. This setup is now mostly considered as legacy as it is recommended that the entire application is hosted on a CDN. That said, this legacy behaviour can still be achieved by setting the baseHref to the CDN address, while setting the APP_BASE_HREF to the application address.

Closes #12322 and closes #14901 and closes #6666

@alan-agius4 alan-agius4 added the target: major This PR is targeted for the next major release label Aug 9, 2021
@alan-agius4 alan-agius4 requested a review from clydin August 9, 2021 14:22
@google-cla google-cla bot added the cla: yes label Aug 9, 2021
@alan-agius4 alan-agius4 changed the title refactor(@angular-devkit/build-angular): deprecate deployUrl feat(@angular-devkit/build-angular): deprecate deployUrl Aug 9, 2021
With this change we deprecate deployUrl which in many case causes unexpected and undesired behaviour. Such as #12322, #21432 and #6666. This is because one of the drawbacks of deploy Url is that this url needs to be injected all over the bundles.

This option was previously introduced to handle application that only assets are hosted on a CDN. This setup is now mostly considered as legacy as it is recommended that the entire application is hosted on a CDN. That said, this legacy behaviour can still be achieved by setting the `baseHref` to the CDN address, while setting the `APP_BASE_HREF` to the application address.

Closes #12322 and closes #6666
@alan-agius4 alan-agius4 requested a review from clydin August 10, 2021 05:28
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Aug 10, 2021
@alan-agius4 alan-agius4 merged commit e95ecb8 into angular:master Aug 10, 2021
@alan-agius4 alan-agius4 deleted the deprecate-deploy-url branch August 10, 2021 17:17
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release
Projects
None yet
2 participants