This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user