mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
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:
7 files changed
+171
-7
No files matched your search
+9
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user