chore: debug metadata controller
All checks were successful
Release to Staging / build_and_release (push) Successful in 47s
All checks were successful
Release to Staging / build_and_release (push) Successful in 47s
This commit is contained in:
parent
a4c2b50a16
commit
f1f75a42df
@ -15,14 +15,23 @@ export class MetadataController {
|
||||
public adminRelays = new Set<string>()
|
||||
|
||||
private constructor() {
|
||||
this.ndk = new NDK({
|
||||
explicitRelayUrls: [
|
||||
'wss://user.kindpag.es',
|
||||
'wss://purplepag.es',
|
||||
'wss://relay.damus.io/',
|
||||
import.meta.env.VITE_APP_RELAY
|
||||
]
|
||||
})
|
||||
console.log(
|
||||
'import.meta.env.VITE_APP_RELAY :>> ',
|
||||
import.meta.env.VITE_APP_RELAY
|
||||
)
|
||||
|
||||
try {
|
||||
this.ndk = new NDK({
|
||||
explicitRelayUrls: [
|
||||
'wss://user.kindpag.es',
|
||||
'wss://purplepag.es',
|
||||
'wss://relay.damus.io/',
|
||||
import.meta.env.VITE_APP_RELAY
|
||||
]
|
||||
})
|
||||
} catch (error) {
|
||||
throw `Error occurred in initializing ndk instance`
|
||||
}
|
||||
|
||||
console.log('this.ndk :>> ', this.ndk)
|
||||
|
||||
@ -35,11 +44,6 @@ export class MetadataController {
|
||||
console.log('error in ndk connection', err)
|
||||
})
|
||||
|
||||
console.log(
|
||||
'import.meta.env.VITE_APP_RELAY :>> ',
|
||||
import.meta.env.VITE_APP_RELAY
|
||||
)
|
||||
|
||||
this.adminNpubs = import.meta.env.VITE_ADMIN_NPUBS.split(',')
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user