mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 16:59:41 +00:00
[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:
7
app/javascript/flavours/glitch/utils/environment.ts
Normal file
7
app/javascript/flavours/glitch/utils/environment.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export function isDevelopment() {
|
||||
return process.env.NODE_ENV === 'development';
|
||||
}
|
||||
|
||||
export function isProduction() {
|
||||
return process.env.NODE_ENV === 'production';
|
||||
}
|
||||
Reference in New Issue
Block a user