[Glitch] Use helpers to check environment in frontend (#2571)

Port 277e6968f5 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Co-authored-by: Renaud Chaput <renchap@gmail.com>
This commit is contained in:
Claire
2024-01-15 12:16:05 +01:00
committed by GitHub
parent 545c0041a0
commit 50188ad211
8 changed files with 28 additions and 9 deletions

View File

@@ -0,0 +1,7 @@
export function isDevelopment() {
return process.env.NODE_ENV === 'development';
}
export function isProduction() {
return process.env.NODE_ENV === 'production';
}