Add Blossom server list to app config (kind 10063)

Blossom servers now live in AppConfig alongside the NIP-65 relay list:
- blossomServerMetadata (BUD-03 server list) and useAppBlossomServers flag
- src/lib/appBlossom.ts provides APP_BLOSSOM_SERVERS defaults
  (blossom.ditto.pub, blossom.dreamith.to, blossom.primal.net),
  parseBlossomServerList, and getEffectiveBlossomServers
- NostrSync hydrates the user's kind 10063 event on login
- useUploadFile reads effective servers from config
This commit is contained in:
Alex Gleason committed 2026-05-04 09:09:51 -05:00
1 parent 4e8aedde9c
commit 4e910ed1f0
7 files changed
+171 -7

No files matched your search

+9 -1
View File
@@ -13,7 +13,6 @@ import { NostrLoginProvider } from '@nostrify/react/login';
import { AppProvider } from '@/components/AppProvider';
import { AppConfig } from '@/contexts/AppContext';
import AppRouter from './AppRouter';
const head = createHead({
plugins: [
InferSeoMetaPlugin(),
@@ -40,6 +39,15 @@ const defaultConfig: AppConfig = {
],
updatedAt: 0,
},
blossomServerMetadata: {
servers: [
'https://blossom.ditto.pub/',
'https://blossom.dreamith.to/',
'https://blossom.primal.net/',
],
updatedAt: 0,
},
useAppBlossomServers: true,
};
export function App() {