From 0a40178b40b4c939b00f03f114777ffff2ed0652 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Tue, 19 May 2026 01:39:13 -0700 Subject: Fix production API base for ticker search --- frontend/lib/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend') diff --git a/frontend/lib/api.ts b/frontend/lib/api.ts index b23edee..2c65ef2 100644 --- a/frontend/lib/api.ts +++ b/frontend/lib/api.ts @@ -1,6 +1,6 @@ import type { FinancialsResponse, HistoryPoint, MarketIndex, RatiosResponse, SearchResult, TickerOverview, ValuationResponse, WatchlistResponse } from "@/types/api"; -const API_BASE = process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000"; +const API_BASE = (process.env.NEXT_PUBLIC_API_BASE_URL || "").trim().replace(/\/$/, ""); export class ApiError extends Error { status: number; -- cgit v1.3-2-g0d8e