优化
This commit is contained in:
9
client/shared/utils/environment.ts
Normal file
9
client/shared/utils/environment.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export const isBrowser = typeof window !== 'undefined';
|
||||
|
||||
export const isNavigator = typeof navigator !== 'undefined';
|
||||
|
||||
export const isDevelopment = process.env.NODE_ENV === 'development';
|
||||
|
||||
export const isProduction = process.env.NODE_ENV === 'production';
|
||||
|
||||
export const version = process.env.VERSION || '0.0.0';
|
||||
Reference in New Issue
Block a user