chore: fix workflow
All checks were successful
Release to Staging / build_and_release (push) Successful in 46s

This commit is contained in:
daniyal 2024-08-10 00:19:37 +05:00
parent f1f75a42df
commit 9e4b9472ee
2 changed files with 11 additions and 21 deletions

View File

@ -22,8 +22,9 @@ jobs:
- name: Create .env File - name: Create .env File
run: | run: |
echo "VITE_APP_RELAY=${{ vars.VITE_APP_RELAY }}" > .env echo "VITE_APP_RELAY=${{ vars.VITE_APP_RELAY }}" >> .env
echo "VITE_ADMIN_NPUBS=${{ vars.VITE_ADMIN_NPUBS }}" > .env echo "VITE_ADMIN_NPUBS=${{ vars.VITE_ADMIN_NPUBS }}" >> .env
cat .env
- name: Create Build - name: Create Build
run: npm run build run: npm run build

View File

@ -15,25 +15,14 @@ export class MetadataController {
public adminRelays = new Set<string>() public adminRelays = new Set<string>()
private constructor() { private constructor() {
console.log( this.ndk = new NDK({
'import.meta.env.VITE_APP_RELAY :>> ', explicitRelayUrls: [
import.meta.env.VITE_APP_RELAY 'wss://user.kindpag.es',
) 'wss://purplepag.es',
'wss://relay.damus.io/',
try { import.meta.env.VITE_APP_RELAY
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)
this.ndk this.ndk
.connect() .connect()