diff --git a/ui/desktop/config/environment.js b/ui/desktop/config/environment.js index 0ef3f3a3b..f95e56961 100644 --- a/ui/desktop/config/environment.js +++ b/ui/desktop/config/environment.js @@ -1,7 +1,7 @@ 'use strict'; const APP_NAME = process.env.APP_NAME || 'Boundary'; -const ENABLE_MIRAGE = process.env.ENABLE_MIRAGE ? false : true; +const ENABLE_MIRAGE = ('ENABLE_MIRAGE' in process.env) ? process.env.ENABLE_MIRAGE : false; module.exports = function (environment) { let ENV = { diff --git a/ui/desktop/package.json b/ui/desktop/package.json index ce7dd0015..e75d70f71 100644 --- a/ui/desktop/package.json +++ b/ui/desktop/package.json @@ -11,7 +11,7 @@ }, "scripts": { "doc:toc": "doctoc README.md", - "build": "ENABLE_MIRAGE=false ember build --environment=production && yarn build:desktop", + "build": "ember build --environment=production && yarn build:desktop", "build:development": "ember build", "prebuild:desktop": "cp -r dist electron-app/ember-dist", "build:desktop": "cd electron-app && yarn make", @@ -24,6 +24,7 @@ "format:js": "prettier --write '{app,config,stories,tests,electron-app/src}/**/*.js' *.js", "format:sass": "prettier --write app/**/*.scss", "start": "ember serve", + "start:development": "ENABLE_MIRAGE=true yarn start", "start:desktop": "ember electron", "clean:coverage": "rm -rf coverage_*", "pretest": "yarn clean:coverage",