diff --git a/src/components/ResultGrid.tsx b/src/components/ResultGrid.tsx index 65fd5a604f65645f551564d01d854d4f04df4ca2..1327c16967197cf081734047c919b0c6212a9419 100644 --- a/src/components/ResultGrid.tsx +++ b/src/components/ResultGrid.tsx @@ -2,6 +2,7 @@ import Image from 'next/image' import { SarifApiResponse } from '../lib/apiClient' import { cn } from '../lib/utils' import ResultTable from './ResultTable' +import { config } from '../config' interface Props { currentScan: SarifApiResponse | null @@ -55,7 +56,12 @@ export default function ResultGrid({ currentScan }: Props) { !badge.badgeGranted && 'opacity-50', )} - src={badge.badgeUrl} + src={ + config.API_BASE_URL.replace( + '/api/v1', + '', + ) + badge.badgeUrl + } fill alt={badge.badgeId} />