feat(market): add CoinGecko market data panel with cached /api/market endpoint
This commit is contained in:
9
lib/api/url.ts
Normal file
9
lib/api/url.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export function buildApiUrl(path: string): string {
|
||||
const base = process.env.NEXT_PUBLIC_API_BASE_URL?.trim();
|
||||
|
||||
if (!base) {
|
||||
return path;
|
||||
}
|
||||
|
||||
return `${base.replace(/\/$/, "")}${path}`;
|
||||
}
|
||||
Reference in New Issue
Block a user