Skip to content

Commit 937503b

Browse files
committed
fix: replace hardcoded BADGE_BASE_URL with NEXT_PUBLIC_SITE_URL env var
- BADGE_BASE_URL was hardcoded to https://commitpulse.vercel.app/api/streak - Badge URLs generated in customize page always pointed to production - Replace with NEXT_PUBLIC_SITE_URL env var with production fallback - Consistent with BASE_URL pattern in dashboard/[username]/page.tsx
1 parent 9b64cab commit 937503b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/customize/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ExportFormat } from './types';
22

3-
const BADGE_BASE_URL = 'https://commitpulse.vercel.app/api/streak';
3+
const BADGE_BASE_URL = `${process.env.NEXT_PUBLIC_SITE_URL ?? 'https://commitpulse.vercel.app'}/api/streak`;
44

55
/**
66
* Removes the leading # from a hex color string.

0 commit comments

Comments
 (0)