chore: enable debug logs only in dev mode
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 41s
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 41s
This commit is contained in:
parent
3a09d4c595
commit
0d93e16f3a
@ -75,7 +75,9 @@ export const NDKContextProvider = ({ children }: { children: ReactNode }) => {
|
|||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
const ndk = useMemo(() => {
|
const ndk = useMemo(() => {
|
||||||
// localStorage.setItem('debug', '*')
|
if (import.meta.env.MODE === 'development') {
|
||||||
|
localStorage.setItem('debug', '*')
|
||||||
|
}
|
||||||
const dexieAdapter = new NDKCacheAdapterDexie({ dbName: 'sigit-db' })
|
const dexieAdapter = new NDKCacheAdapterDexie({ dbName: 'sigit-db' })
|
||||||
dexieAdapter.locking = true
|
dexieAdapter.locking = true
|
||||||
const ndk = new NDK({
|
const ndk = new NDK({
|
||||||
|
Loading…
Reference in New Issue
Block a user