mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-14 00:36:48 +00:00
Fix build
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
const pug = require('pug')
|
||||
const { mkdirSync, writeFileSync } = require('fs')
|
||||
const { dirname, resolve } = require('path')
|
||||
const { NDKUser } = require('@nostr-dev-kit/ndk')
|
||||
const team = require('../content/team.json')
|
||||
const { nostr: einundzwanzigNpub } = require('../content/meta.json')
|
||||
|
||||
const einundzwanzigHex = new NDKUser({ npub: einundzwanzigNpub }).hexpubkey()
|
||||
const einundzwanzigHex = new NDKUser({ npub: einundzwanzigNpub }).hexpubkey
|
||||
const names = {
|
||||
"_": einundzwanzigHex,
|
||||
"einundzwanzig": einundzwanzigHex
|
||||
@@ -19,7 +18,7 @@ const relays = {
|
||||
Object.entries(team).forEach(([key, { nostr: npub }]) => {
|
||||
if (!npub) return
|
||||
const id = key.replace(/[\s]/g, '_')
|
||||
names[id] = new NDKUser({ npub }).hexpubkey()
|
||||
names[id] = new NDKUser({ npub }).hexpubkey
|
||||
})
|
||||
|
||||
const dst = resolve(__dirname, '..', 'dist', '.well-known', 'nostr.json')
|
||||
|
||||
Reference in New Issue
Block a user