Make Nostr git servers configurable

This commit is contained in:
Alex Gleason committed 2025-10-14 20:53:32 -05:00
1 parent e4c3fc8b05
commit ab91a56da6
13 files changed
+145 -22

No files matched your search

+3 -3
View File
@@ -12,11 +12,11 @@ export function useGit(): { git: Git } {
const { fs } = useFS();
const { nostr } = useNostr();
const { config } = useAppContext();
const { corsProxy } = config;
const { corsProxy, ngitServers } = config;
const git = useMemo(() => {
return new Git({ fs, nostr, corsProxy });
}, [fs, nostr, corsProxy]);
return new Git({ fs, nostr, corsProxy, ngitServers });
}, [fs, nostr, corsProxy, ngitServers]);
return { git };
}