diff --git a/frontend/src/app/scripts/page.tsx b/frontend/src/app/scripts/page.tsx index 23143b1c..2ccbc7fc 100644 --- a/frontend/src/app/scripts/page.tsx +++ b/frontend/src/app/scripts/page.tsx @@ -48,7 +48,7 @@ function ScriptContent() { useEffect(() => { fetch( - `/api/categories?_=${process.env.NEXT_PUBLIC_BUILD_TIME || Date.now()}`, + `api/categories?_=${process.env.NEXT_PUBLIC_BUILD_TIME || Date.now()}`, ) .then((response) => response.json()) .then((categories) => { diff --git a/frontend/src/components/CommandMenu.tsx b/frontend/src/components/CommandMenu.tsx index e830b2ba..e5157e03 100644 --- a/frontend/src/components/CommandMenu.tsx +++ b/frontend/src/components/CommandMenu.tsx @@ -53,7 +53,7 @@ export default function CommandMenu() { const fetchCategories = async () => { setIsLoading(true); fetch( - `/api/categories?_=${process.env.NEXT_PUBLIC_BUILD_TIME || Date.now()}`, + `api/categories?_=${process.env.NEXT_PUBLIC_BUILD_TIME || Date.now()}`, ) .then((response) => response.json()) .then((categories) => {