fix(frontend): use standalone output only in production build

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-05-04 20:52:00 +02:00
parent 045ba43c17
commit 33629b945d
2 changed files with 10 additions and 3 deletions

View file

@ -37,8 +37,15 @@ const isMockMode = !!process.env.NEXT_PUBLIC_USE_MOCK_API && isPositiveAnswer(pr
*/
const isDevMode = process.env.NODE_ENV === 'development'
/**
* Defines if the current runtime was built in production mode.
* @type boolean
*/
const isProductionMode = process.env.NODE_ENV === 'production'
module.exports = {
isTestMode,
isMockMode,
isDevMode
isDevMode,
isProductionMode
}