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