File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11REACT_APP_IVLE_KEY = your_ivle_key_here
22REACT_APP_VERSION = $npm_package_version
3- REACT_APP_BACKEND_URL = http://something.com
4- REACT_APP_USE_BACKEND =
3+ REACT_APP_BACKEND_URL = http://localhost:4001
4+ REACT_APP_USE_BACKEND = TRUE
Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ dotenv.config()
55export const IVLE_KEY = process . env . REACT_APP_IVLE_KEY
66export const VERSION = process . env . REACT_APP_VERSION
77export const BACKEND_URL = process . env . REACT_APP_BACKEND_URL
8- export const USE_BACKEND = process . env . REACT_APP_USE_BACKEND
8+ export const USE_BACKEND =
9+ process . env . REACT_APP_USE_BACKEND !== '' &&
10+ process . env . REACT_APP_USE_BACKEND ! . toUpperCase ( ) === 'TRUE'
911
1012export enum LINKS {
1113 GITHUB_ISSUES = 'https://github.com/source-academy/cadet-frontend/issues' ,
You can’t perform that action at this time.
0 commit comments