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,6 +15,12 @@ export class MetadataController {
|
||||
public adminRelays = new Set<string>()
|
||||
|
||||
private constructor() {
|
||||
console.log(
|
||||
'import.meta.env.VITE_APP_RELAY :>> ',
|
||||
import.meta.env.VITE_APP_RELAY
|
||||
)
|
||||
|
||||
try {
|
||||
this.ndk = new NDK({
|
||||
explicitRelayUrls: [
|
||||
'wss://user.kindpag.es',
|
||||
@ -23,6 +29,9 @@ export class MetadataController {
|
||||
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