chore: Check for ENABLE_MIRAGE env var before using it
This commit is contained in:
2 files changed
+3
-2
No files matched your search
@@ -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 = {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user