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 72f67c57cb
commit e68709f9f1

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 = {