Skip to content

add REACT_APP_NAME to env sample - #45

Open
ethanppl wants to merge 3 commits into
gitstartfrom
fix-client-env
Open

add REACT_APP_NAME to env sample#45
ethanppl wants to merge 3 commits into
gitstartfrom
fix-client-env

Conversation

@ethanppl

Copy link
Copy Markdown

Some users log path in client\src\components\Settings\AppForm.tsx, becomes ~/.config/undefined/logs/main.log.

Code in client\src\components\Settings\AppForm.tsx:

constappName=process.env.REACT_APP_NAME;constplatform=(windowasany).platform;constlinuxPath=`~/.config/${appName}/logs/main.log`;constmacOSPath=`~/Library/Logs/${appName}/main.log`;constwindowsPath=`%USERPROFILE%\\AppData\\Roaming\${appName}\\logs\\main.log`;

@ziahamza
ziahamza removed their request for review May 3, 2022 09:40
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@ethanppl