diff --git a/packages/common/utils/src/device/isServer.ts b/packages/common/utils/src/device/isServer.ts index 24cdf3ecb..7d08d9705 100644 --- a/packages/common/utils/src/device/isServer.ts +++ b/packages/common/utils/src/device/isServer.ts @@ -1,6 +1,5 @@ /** @tossdocs-ignore */ -declare const global: unknown; export function isServer() { - return typeof window === 'undefined' && typeof global !== 'undefined'; + return typeof window === 'undefined' || 'Deno' in globalThis; }