mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-17 08:34:54 -04:00
fix(frontend): use standalone output only in production build
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
045ba43c17
commit
33629b945d
2 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue