feat: multiple fixes

- Define binaryTargets for schema.prisma so it works inside alpine
- Log adminNpubs
- Set default for config `domains`
This commit is contained in:
Nour 2024-01-23 17:44:38 +00:00
parent 1d4251c23e
commit e40fafa3b5
No known key found for this signature in database
GPG Key ID: 9744560DE7DA09AE
3 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
generator client {
provider = "prisma-client-js"
binaryTargets = ["native", "linux-musl-arm64-openssl-3.0.x"]
}
datasource db {

View File

@ -111,6 +111,9 @@ export async function start(opts: IOpts) {
if (opts.adminNpubs && opts.adminNpubs.length > 0) {
configData.admin.npubs = opts.adminNpubs;
console.log(`✅ adminNpubs: ${opts.adminNpubs}`)
} else {
console.log(`❌ no adminNpubs were provided`)
}
await saveCurrentConfig(opts.config, configData);

View File

@ -62,6 +62,7 @@ const defaultConfig: IConfig = {
logs: './nsecbunker.log',
keys: {},
verbose: false,
domains: {}
};
async function getCurrentConfig(config: string): Promise<IConfig> {