Move obsidian reference to a proxy at /metadata and make it env configurable with OBSIDIAN_BEACHHEAD_SERVER.
This commit is contained in:
+1
-1
@@ -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 => ({
|
||||
|
||||
Reference in New Issue
Block a user