Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
REACT_APP_IVLE_KEY=your_ivle_key_here
REACT_APP_VERSION=$npm_package_version
REACT_APP_BACKEND_URL=http://something.com
REACT_APP_USE_BACKEND=
REACT_APP_BACKEND_URL=http://localhost:4001
REACT_APP_USE_BACKEND=TRUE
4 changes: 3 additions & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ dotenv.config()
export const IVLE_KEY = process.env.REACT_APP_IVLE_KEY
export const VERSION = process.env.REACT_APP_VERSION
export const BACKEND_URL = process.env.REACT_APP_BACKEND_URL
export const USE_BACKEND = process.env.REACT_APP_USE_BACKEND
export const USE_BACKEND =
process.env.REACT_APP_USE_BACKEND !== '' &&
process.env.REACT_APP_USE_BACKEND!.toUpperCase() === 'TRUE'

export enum LINKS {
GITHUB_ISSUES = 'https://github.com/source-academy/cadet-frontend/issues',
Expand Down