mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 15:14:56 -04:00

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>
13 lines
315 B
TypeScript
13 lines
315 B
TypeScript
/*
|
|
* 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
|
|
}
|