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: [],
|
||||
refetchInterval: false,
|
||||
queryFn: async () => {
|
||||
const response = await fetch("http://localhost:9002/metadata")
|
||||
const response = await fetch("/metadata")
|
||||
const fullData: any[] = await response.json();
|
||||
return fullData;
|
||||
},
|
||||
@ -49,7 +49,7 @@ export function OmnisearchSelect({setSelected}: {
|
||||
if (query === '') {
|
||||
return [];
|
||||
} else {
|
||||
const response = await fetch(`http://localhost:9002/search?q=${query}`)
|
||||
const response = await fetch(`/search?q=${query}`)
|
||||
const fullData: ResultNoteApi[] = await response.json();
|
||||
|
||||
return fullData;
|
||||
|
||||
@ -45,7 +45,7 @@ export function NaiveSelect({setSelected}: {
|
||||
queryKey: ['obsidian-metadata'],
|
||||
initialData: [],
|
||||
queryFn: async () => {
|
||||
const response = await fetch("http://localhost: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 => ({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user