We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a758fd commit 3ed5e57Copy full SHA for 3ed5e57
apps/web/app/lib/logger.ts
@@ -1,7 +1,7 @@
1
import pino from 'pino';
2
3
// Check if we're in a browser environment
4
-const isBrowser = typeof window !== 'undefined';
+const isBrowser = typeof globalThis !== 'undefined' && 'window' in globalThis;
5
6
// Create logger instance
7
const logger = isBrowser
0 commit comments