Skip to content
This repository was archived by the owner on Jul 29, 2020. It is now read-only.

Commit 85f97db

Browse files
author
Paul Le Cam
committed
Set environment namespace
1 parent aa557a3 commit 85f97db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"dist:electron": "electron-builder",
2020
"lint": "eslint 'src/**/*.js'",
2121
"lint:fix": "yarn run lint --fix",
22-
"release": "electron-builder",
22+
"release": "yarn run compile && electron-builder",
2323
"relay:build": "BABEL_ENV=script node -r @babel/register ./scripts/build-graphql-schema",
2424
"relay:compile": "relay-compiler --src ./src --schema ./src/schema.graphql",
2525
"relay": "yarn run relay:build && yarn run relay:compile",

src/main/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { createLogger } from './logger'
1313

1414
const { MAINFRAME_ENV, NODE_ENV } = process.env
1515

16-
const ENV_NAME = MAINFRAME_ENV || 'local-test'
1716
let ENV_TYPE = is.development ? 'development' : 'production'
1817
if (
1918
NODE_ENV === 'development' ||
@@ -22,6 +21,7 @@ if (
2221
) {
2322
ENV_TYPE = NODE_ENV
2423
}
24+
const ENV_NAME = MAINFRAME_ENV || `mfos-${NODE_ENV}`
2525

2626
const env = Environment.get(ENV_NAME, ENV_TYPE)
2727
const logger = createLogger(env)

0 commit comments

Comments
 (0)