Skip to content

Commit

Permalink
Fixed unset electron production flag. (microsoft#2860)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyanziano authored May 1, 2020
1 parent 697f6dd commit b866887
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 b866887

Please sign in to comment.