Skip to content

[ENHANCEMENT] Project#config should use EMBER_ENV as default environment when none is passed in - #8595

Merged
rwjblue merged 1 commit into
ember-cli:masterfrom
nlfurniss:have-default-env
Apr 18, 2019
Merged

rwjblue merged 1 commit into
ember-cli:masterfrom
nlfurniss:have-default-env

Conversation

@nlfurniss

@nlfurniss nlfurniss commented Apr 16, 2019 •

Copy link
Copy Markdown
Contributor

When no env is passed to project#config, it uses undefined which some devs have found confusing.

I'm proposing using the environment from EMBER_ENV as the default if no env is supplied.

  • Tested in demo app
  • Wrote new test
  • Both fast and slow ember-cli tests pass

Closes #7779

@rwjblue rwjblue added the bug label Apr 18, 2019
@rwjblue
rwjblue merged commit 26a2ddb into ember-cli:master Apr 18, 2019
@rwjblue

rwjblue commented Apr 18, 2019

Copy link
Copy Markdown
Member

Thank you @nlfurniss!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

environment undefined first time through

2 participants