Move obsidian reference to a proxy at /metadata and make it env configurable with OBSIDIAN_BEACHHEAD_SERVER.

This commit is contained in:
2023-09-29 10:23:55 +01:00
parent cfec7982e0
commit cf6e26b890
3 changed files with 18 additions and 6 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ export function LargeSelect() {
queryKey: ['obsidian-metadata'],
initialData: [],
queryFn: async () => {
const response = await fetch("http://100.115.154.44:9002/metadata")
const response = await fetch("/metadata")
const fullData: any[] = await response.json();
return R.sortBy(v => -(v.data.backlinks?.length ?? 0), fullData.map(md => ({