diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-19 01:39:13 -0700 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-19 01:39:13 -0700 |
| commit | 0a40178b40b4c939b00f03f114777ffff2ed0652 (patch) | |
| tree | c646fe376400090f0dd88bd04023d61cce62a047 /frontend/lib | |
| parent | b50c46d5bdbb1bd5e06a96a66b0696c1145ff4a9 (diff) | |
Fix production API base for ticker search
Diffstat (limited to 'frontend/lib')
| -rw-r--r-- | frontend/lib/api.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
