Skip to content
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

feat: set deploy URL as runtime property #630

Merged
merged 3 commits into from
Jul 30, 2021
Merged

Conversation

dhhyi
Copy link
Collaborator

@dhhyi dhhyi commented Mar 20, 2021

PR Type

[x] Feature

What Is the Current Behavior?

Deploy URL in links to static resources is sometimes used relatively and sometimes absolute.

Issue Number: Closes #624

What Is the New Behavior?

The deploy URL (which can be set for default Angular projects with ng build --deploy-url) can be set via environment variable DEPLOY_URL to the SSR process.

If not set, the default deployment URL / is applied, which ensures, all static assets are correctly loaded from the deployment root.

This PR also makes it possible to use deeply nested baseHrefs with a Multi-Channel context path setup.

This PR depends on #655 to make the Angular application independent on the DEPLOY_URL.

Does this PR Introduce a Breaking Change?

[ ] Yes
[x] No

TODO

AB#65697

@dhhyi dhhyi force-pushed the feat/dynamic-deploy-url branch from 0876388 to 46cd114 Compare March 21, 2021 15:19
@dhhyi dhhyi changed the title feat: dynamic deploy url feat: set deploy URL as runtime property Mar 21, 2021
@dhhyi dhhyi self-assigned this Mar 21, 2021
@dhhyi dhhyi added the feature New feature or request label Mar 21, 2021
@dhhyi dhhyi force-pushed the feat/dynamic-deploy-url branch from 46cd114 to b876fc2 Compare March 27, 2021 16:44
@dhhyi dhhyi force-pushed the feat/dynamic-deploy-url branch from b876fc2 to a4402f8 Compare April 2, 2021 13:41
@dhhyi dhhyi marked this pull request as ready for review April 2, 2021 13:43
@dhhyi dhhyi removed their assignment Apr 2, 2021
@dhhyi
Copy link
Collaborator Author

dhhyi commented Apr 16, 2021

I have to take this back to WIP as it breaks ng serve

@dhhyi dhhyi marked this pull request as draft April 16, 2021 15:10
@dhhyi dhhyi self-assigned this Apr 16, 2021
@dhhyi dhhyi force-pushed the feat/dynamic-deploy-url branch from a4a7063 to 4b96efa Compare April 17, 2021 13:29
@dhhyi dhhyi marked this pull request as ready for review April 17, 2021 13:30
@dhhyi dhhyi removed their assignment Apr 17, 2021
@dhhyi dhhyi force-pushed the feat/dynamic-deploy-url branch from 4b96efa to c618d58 Compare April 17, 2021 18:35
@dhhyi dhhyi changed the base branch from develop to feature/translations-output-hashed April 17, 2021 18:38
@dhhyi dhhyi force-pushed the feature/translations-output-hashed branch from 8c725de to 828dc50 Compare April 17, 2021 18:49
@dhhyi dhhyi force-pushed the feat/dynamic-deploy-url branch from c618d58 to 6285fe2 Compare April 17, 2021 18:50
@dhhyi dhhyi added the wait Waiting for something (e.g. new ICM release) label Apr 18, 2021
@dhhyi
Copy link
Collaborator Author

dhhyi commented Apr 18, 2021

wait for integration of #655

@dhhyi dhhyi force-pushed the feature/translations-output-hashed branch from 828dc50 to 4b07610 Compare April 18, 2021 19:09
@dhhyi dhhyi force-pushed the feat/dynamic-deploy-url branch 2 times, most recently from c4ceb80 to ed6433c Compare April 20, 2021 07:55
@dhhyi dhhyi force-pushed the feature/translations-output-hashed branch 2 times, most recently from 658afe8 to ba32a09 Compare June 3, 2021 12:09
@jometzner
Copy link
Collaborator

jometzner commented Jul 2, 2021

Closes AB#64439

@shauke shauke force-pushed the develop branch 2 times, most recently from e9b21fc to 09c2765 Compare July 7, 2021 08:10
@dhhyi dhhyi force-pushed the feat/dynamic-deploy-url branch from 9763b31 to ce9cac1 Compare July 22, 2021 10:13
@dhhyi dhhyi self-assigned this Jul 22, 2021
@dhhyi dhhyi force-pushed the feat/dynamic-deploy-url branch from ce9cac1 to 5004f9e Compare July 22, 2021 11:10
@dhhyi dhhyi force-pushed the feat/dynamic-deploy-url branch from 5004f9e to d0f0e45 Compare July 29, 2021 14:01
dhhyi and others added 2 commits July 30, 2021 10:08
@jometzner jometzner force-pushed the feat/dynamic-deploy-url branch from d0f0e45 to 561a4c6 Compare July 30, 2021 08:08
jometzner
jometzner previously approved these changes Jul 30, 2021
Copy link
Contributor

@marschmidt89 marschmidt89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

documentation review done

@jometzner jometzner merged commit 5fed5c4 into develop Jul 30, 2021
@jometzner jometzner deleted the feat/dynamic-deploy-url branch July 30, 2021 13:24
@jometzner jometzner removed their assignment Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sequential call causes wrong .js path
5 participants