mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 15:44:45 -04:00
Fix Communication between frontend and backend (#1201)
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de> Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
4a18e51c83
commit
9cf7980334
38 changed files with 268 additions and 164 deletions
13
src/utils/test-modes.ts
Normal file
13
src/utils/test-modes.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
export const isTestMode = (): boolean => {
|
||||
return !!process.env.REACT_APP_TEST_MODE
|
||||
}
|
||||
|
||||
export const isMockMode = (): boolean => {
|
||||
return process.env.REACT_APP_BACKEND === undefined
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue