1
0
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:
2025-12-10 15:58:06 +08:00
parent 2b4e351c08
commit d50be81c19

View File

@@ -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";
}