Skip to content

Commit

Permalink
Add Mirage-toggling via environment variable (#5899)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
backspace authored Jul 2, 2019
1 parent 72f67c5 commit e68709f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/config/environment.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down

0 comments on commit e68709f

Please sign in to comment.