Skip to content

Make config management developer friendly #43

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 5 commits into from
Aug 11, 2020
Merged

Conversation

nagpalkaran95
Copy link
Collaborator

PR Tasks

  • Changing the way we load config to make it more development friendly

suryart
suryart previously approved these changes Jul 21, 2020
Copy link
Collaborator

@suryart suryart left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@karanshah-browserstack karanshah-browserstack left a comment

Choose a reason for hiding this comment

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

Lgtm

// load config based on env
require('custom-env').env(config.env)
if(config.env === "production") {
config.uploadUrl = 'https://api-cloud.browserstack.com/automate-frameworks/cypress/upload';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we move these to config.json and load that JSON on line 1?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@nagpalkaran95 nagpalkaran95 merged commit 1487a4e into master Aug 11, 2020
@nagpalkaran95 nagpalkaran95 deleted the CYP_161_config branch August 11, 2020 10:49
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.

3 participants