-
Notifications
You must be signed in to change notification settings - Fork 406
#RI-4265 - Enhance the window opening in Electron #2174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#RI-4265 - Enhance the window opening in Electron #2174
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dind't look to ui/* part
In general looks nice but have few questions to address before approve
@@ -31,9 +30,6 @@ export default merge(mainProdConfig, { | |||
APP_VERSION: version, | |||
AWS_BUCKET_NAME: 'AWS_BUCKET_NAME' in process.env ? process.env.AWS_BUCKET_NAME : '', | |||
SEGMENT_WRITE_KEY: 'SEGMENT_WRITE_KEY' in process.env ? process.env.SEGMENT_WRITE_KEY : 'SOURCE_WRITE_KEY', | |||
CONNECTIONS_TIMEOUT_DEFAULT: 'CONNECTIONS_TIMEOUT_DEFAULT' in process.env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove this env?
|
||
contextBridge.exposeInMainWorld('electron', electronHandler); | ||
|
||
contextBridge.exposeInMainWorld('ENV_VARS', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like to export env variables. Let's have electron.config object with everything needed. What do you think?
import path from 'path'; | ||
|
||
export function resolveHtmlPath(htmlFileName: string) { | ||
if (process.env.NODE_ENV === 'development') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really do not understand why somewhere we are using envVars somewhere process.env and what was the goal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve with agreement that not resolved comments will be addressed in another PR #2182
#RI-4265 - Enhance the window opening in Electron