From 498f1f4e4fde6f12013e9b343b74cba375a8b663 Mon Sep 17 00:00:00 2001 From: Suriya Date: Tue, 21 Jul 2026 16:48:52 +0530 Subject: [PATCH] Fix catalogue API base URL missing /web segment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit catalogueApi.ts's fallback base URL ("/live/api/v1") was one path segment short of where the routes actually live ("/live/api/v1/web"), unlike every other service file's fallback. Any build without VITE_FIESTA_URL set (it's gitignored, never committed) 404'd on every catalogue call — browse, brands, categories, and import. Co-Authored-By: Claude Sonnet 5 --- src/services/catalogueApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/catalogueApi.ts b/src/services/catalogueApi.ts index d5ac890..b7b3bf1 100644 --- a/src/services/catalogueApi.ts +++ b/src/services/catalogueApi.ts @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -const API_BASE = import.meta.env.VITE_FIESTA_URL || "https://fiesta.nearle.app/live/api/v1"; +const API_BASE = import.meta.env.VITE_FIESTA_URL || "https://fiesta.nearle.app/live/api/v1/web"; export interface CatalogueProduct { id: number;