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

Support specifying multiple possible environments. #7809

Merged
merged 3 commits into from
Jan 11, 2019
Merged

Conversation

kripken
Copy link
Member

@kripken kripken commented Jan 3, 2019

Until this PR we supported either all of them or just 1. With this, ENVIRONMENT=web,worker means it can be web or worker, but not node or anything else.

Improves the testing of ENVIRONMENT, which caught a bug where scriptDirectory = __dirname + '/'; needs to be after an assertion (so that the assertion is hit first and shows a clear error message, instead of a weird one later).

See #7801. cc @surma

@kripken kripken merged commit e9d8b5c into incoming Jan 11, 2019
@kripken kripken deleted the multienv branch January 11, 2019 01:05
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.

1 participant