woof. killed useClient and use nextjs api
CI / test (push) Successful in 5s

This commit is contained in:
2026-01-25 13:40:10 -05:00
parent 5b73d59c2c
commit 50ef395a38
19 changed files with 696 additions and 247 deletions
+2 -3
View File
@@ -58,8 +58,7 @@ type GunbuilderProductFromApi = {
inStock?: boolean | null;
};
const API_BASE_URL =
process.env.NEXT_PUBLIC_API_BASE_URL ?? "";
// API routes now handled by Next.js /api routes (server-side)
const PAGE_SIZE = 24;
@@ -175,7 +174,7 @@ export default function PartsBrowseClient(props: {
}
const res = await fetch(
`${API_BASE_URL}/api/v1/catalog/options?${search.toString()}`,
`/api/catalog/options?${search.toString()}`,
{
signal: controller.signal,
}