mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Make Nostr git servers configurable
This commit is contained in:
13 files changed
+145
-22
No files matched your search
+3
-3
@@ -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 };
|
||||
}
|
||||
Reference in new issue
Block a user