Skip to content

Commit

Permalink
Merge branch 'master' into abrown/fix/bot-not-updating
Browse files Browse the repository at this point in the history
  • Loading branch information
a-b-r-o-w-n authored May 1, 2020
2 parents 83abdb2 + 97c425e commit 40ba9b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Composer/packages/electron-server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ const getBaseUrl = () => {
return `http://localhost:${serverPort}/`;
};

// set production flag
if (app.isPackaged) {
process.env.NODE_ENV = 'production';
}
log(`${process.env.NODE_ENV} environment detected.`);

function processArgsForWindows(args: string[]): string {
const deepLinkUrl = args.find(arg => arg.startsWith(composerProtocol));
if (deepLinkUrl) {
Expand Down
2 changes: 1 addition & 1 deletion Composer/packages/electron-server/src/utility/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

import debug from 'debug';

export default debug('composer');
export default debug('composer:electron');

0 comments on commit 40ba9b0

Please sign in to comment.