-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue where NODE_ENV was not set in production, causing file load…
…s to fail
- Loading branch information
1 parent
5a160d0
commit 30fb93b
Showing
5 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
packages/giterm/app/renderer/components/terminal/bash-config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if (process.env.NODE_ENV == undefined) { | ||
process.env.NODE_ENV = 'production' | ||
} | ||
|
||
type Env = 'production' | 'development' | 'test' | ||
|
||
export const NODE_ENV: Env = process.env.NODE_ENV as Env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import * as Sentry from '@sentry/electron' | ||
|
||
process.env.NODE_ENV ||= 'production' | ||
|
||
Sentry.init({ | ||
dsn: 'https://[email protected]/5412064', | ||
enabled: process.env.NODE_ENV === 'production' || !!process.env.FORCE_SENTRY, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters