mirror of
https://github.com/sendevia/website.git
synced 2026-03-05 23:32:45 +08:00
refactor: remove unused environment detection utilities
This commit is contained in:
@@ -13,19 +13,3 @@ export function isClient(): boolean {
|
||||
export function isServer(): boolean {
|
||||
return !isClient();
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前是否在开发环境
|
||||
* @returns 如果是开发环境返回 true,否则返回 false
|
||||
*/
|
||||
export function isDev(): boolean {
|
||||
return process.env.NODE_ENV === "development";
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前是否在生产环境
|
||||
* @returns 如果是生产环境返回 true,否则返回 false
|
||||
*/
|
||||
export function isProd(): boolean {
|
||||
return process.env.NODE_ENV === "production";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user