chore: Check for ENABLE_MIRAGE env var before using it

This commit is contained in:
Susmitha Girumala committed 2021-01-22 13:51:39 -05:00
1 parent 73f3e027b1
commit 3b7baab575
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -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 = {
+2 -1
View File
@@ -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",