Skip to content

Commit 3ed5e57

Browse files
committed
Fix TypeScript error in logger browser detection
1 parent 1a758fd commit 3ed5e57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/app/lib/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pino from 'pino';
22

33
// Check if we're in a browser environment
4-
const isBrowser = typeof window !== 'undefined';
4+
const isBrowser = typeof globalThis !== 'undefined' && 'window' in globalThis;
55

66
// Create logger instance
77
const logger = isBrowser

0 commit comments

Comments
 (0)