Change backend URL to be root as opposed to localhost
All checks were successful
Build and Publish Docker Container / build (push) Successful in 1m10s
All checks were successful
Build and Publish Docker Container / build (push) Successful in 1m10s
This commit is contained in:
parent
5d146aaf3f
commit
8f7b9a1a87
@ -33,7 +33,7 @@ export function OmnisearchSelect({setSelected}: {
|
|||||||
initialData: [],
|
initialData: [],
|
||||||
refetchInterval: false,
|
refetchInterval: false,
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const response = await fetch("http://localhost:9002/metadata")
|
const response = await fetch("/metadata")
|
||||||
const fullData: any[] = await response.json();
|
const fullData: any[] = await response.json();
|
||||||
return fullData;
|
return fullData;
|
||||||
},
|
},
|
||||||
@ -49,7 +49,7 @@ export function OmnisearchSelect({setSelected}: {
|
|||||||
if (query === '') {
|
if (query === '') {
|
||||||
return [];
|
return [];
|
||||||
} else {
|
} else {
|
||||||
const response = await fetch(`http://localhost:9002/search?q=${query}`)
|
const response = await fetch(`/search?q=${query}`)
|
||||||
const fullData: ResultNoteApi[] = await response.json();
|
const fullData: ResultNoteApi[] = await response.json();
|
||||||
|
|
||||||
return fullData;
|
return fullData;
|
||||||
|
|||||||
@ -45,7 +45,7 @@ export function NaiveSelect({setSelected}: {
|
|||||||
queryKey: ['obsidian-metadata'],
|
queryKey: ['obsidian-metadata'],
|
||||||
initialData: [],
|
initialData: [],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const response = await fetch("http://localhost:9002/metadata")
|
const response = await fetch("/metadata")
|
||||||
const fullData: any[] = await response.json();
|
const fullData: any[] = await response.json();
|
||||||
|
|
||||||
return R.sortBy(v => -(v.data.backlinks?.length ?? 0), fullData.map(md => ({
|
return R.sortBy(v => -(v.data.backlinks?.length ?? 0), fullData.map(md => ({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user