diff --git a/src/contexts/NDKContext.tsx b/src/contexts/NDKContext.tsx index 55100e8..ba1d734 100644 --- a/src/contexts/NDKContext.tsx +++ b/src/contexts/NDKContext.tsx @@ -75,7 +75,9 @@ export const NDKContextProvider = ({ children }: { children: ReactNode }) => { }, []) const ndk = useMemo(() => { - // localStorage.setItem('debug', '*') + if (import.meta.env.MODE === 'development') { + localStorage.setItem('debug', '*') + } const dexieAdapter = new NDKCacheAdapterDexie({ dbName: 'sigit-db' }) dexieAdapter.locking = true const ndk = new NDK({