Add Mirage-toggling via environment variable (#5899)

I’m finding myself having to revert my change to this
variable when I switch branches, so this would let me
affect the variable without code changes.
This commit is contained in:
Buck Doyle 2019-07-02 08:58:43 -05:00 committed by GitHub
parent a97d451ac7
commit 100433b08a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
/* eslint-env node */
const USE_MIRAGE = true;
let USE_MIRAGE = true;
if (process.env.USE_MIRAGE) {
USE_MIRAGE = process.env.USE_MIRAGE == 'true';
}
module.exports = function(environment) {
var ENV = {