Use helpers to check environment in frontend (#27633)
parent
7ef56d6e50
commit
277e6968f5
@ -0,0 +1,7 @@
|
|||||||
|
export function isDevelopment() {
|
||||||
|
return process.env.NODE_ENV === 'development';
|
||||||
|
}
|
||||||
|
|
||||||
|
export function isProduction() {
|
||||||
|
return process.env.NODE_ENV === 'production';
|
||||||
|
}
|
Loading…
Reference in new issue