-
Notifications
You must be signed in to change notification settings - Fork 276
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
[create-sitecore-jss] Improve handling of proxyAppDestination #1868
Conversation
…63-relative-proxy-dest # Conflicts: # packages/create-sitecore-jss/src/templates/angular-xmcloud/package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few comments, otherwise looks good to me :)
packages/create-sitecore-jss/src/templates/angular-xmcloud/package.json
Outdated
Show resolved
Hide resolved
packages/create-sitecore-jss/src/initializers/angular/prompts.ts
Outdated
Show resolved
Hide resolved
@art-alexeyenko Let's make the naming of some variables, comments a bit more explicit. For now it's vague and means that we can use both "node-headless-ssr-proxy" and "node-xmcloud-proxy" in this journey |
@illiakovalenko that's the idea, yes. You should be able to install node-xmcloud-proxy alongside angualar-xmcloud, node-headless-proxy alognside react, vue, angular-sxp etc, and any other proxy alongside another main app, if you need to, without running CLI command twice. It's more convenient that way. |
packages/create-sitecore-jss/src/initializers/angular/prompts.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this file change be reverted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. Files are identical but git thinks it was changed. Outside of gitignore I don't know what can be done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@art-alexeyenko It's related to CRLF vs LF EOL Sequence, we are using CRLF, you need to update your settings to use CRLF as well (I suppose)
I've already pushed the change and reverted package.json
Co-authored-by: Illia Kovalenko <23364749+illiakovalenko@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
Please, resolve conficlits and feel free to merge I resolved
Description / Motivation
Fixes several problems with proxyAppDestination:
helper.relativeProxyAppDestination
. The path will be relative to main app.Also, to improve the new app+proxy journey:
Testing Details
Types of changes