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

Don't add launch_prefix_url to .env #137

Merged
merged 2 commits into from
Apr 15, 2021
Merged

Don't add launch_prefix_url to .env #137

merged 2 commits into from
Apr 15, 2021

Conversation

Himavanth
Copy link
Contributor

@Himavanth Himavanth commented Apr 12, 2021

Description

This is already being handled in aio-cli-plugin-app

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov
Copy link

codecov bot commented Apr 12, 2021

Codecov Report

Merging #137 (3453414) into master (356d963) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #137   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           25        25           
  Lines          619       618    -1     
  Branches        82        82           
=========================================
- Hits           619       618    -1     
Impacted Files Coverage Δ
generators/add-web-assets/exc-react/index.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 356d963...3453414. Read the comment docs.

@Himavanth
Copy link
Contributor Author

utils.appendOrWrite(
this,
this.destinationPath(dotenvFilename),
`## URL prefix used to run your application in the Adobe Experience Cloud Shell
AIO_LAUNCH_URL_PREFIX="https://experience.adobe.com/?devMode=true#/custom-apps/?localDevUrl="
AIO_LAUNCH_URL_PREFIX="${launchPrefix}"
Copy link
Member

Choose a reason for hiding this comment

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

Should we remove this one from the .env, in adobe/aio-cli-plugin-app#396 you already set the default.
If someone inits an app in stage and then wants to switch to prod he needs to edit that line in the .env. If we don't include it then app plugin will be able to set the correct default

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. These kind of overrides could just be documented instead of actually putting in .env.

Copy link
Member

Choose a reason for hiding this comment

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

👍 for doc so then feel free to remove the env var 🙂

@Himavanth Himavanth changed the title Use experience-stage for stage env Don't add launch_prefix_url to .env Apr 14, 2021
@Himavanth Himavanth requested a review from moritzraho April 14, 2021 10:41
Copy link
Member

@moritzraho moritzraho left a comment

Choose a reason for hiding this comment

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

lgtm, thanks for the change

@Himavanth Himavanth merged commit 779c1d1 into master Apr 15, 2021
@Himavanth Himavanth deleted the stg branch April 15, 2021 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants