Change backend URL to be root as opposed to localhost
All checks were successful
Build and Publish Docker Container / build (push) Successful in 1m10s

This commit is contained in:
Joshua Coles 2023-12-03 23:32:03 +00:00
parent 5d146aaf3f
commit 8f7b9a1a87
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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 => ({