Skip to content

Commit

Permalink
fix: don't use svg in og image generation
Browse files Browse the repository at this point in the history
  • Loading branch information
rkalis committed Dec 25, 2024
1 parent 2a5f2f9 commit 0e21d16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/[locale]/og.jpg/exploits/[slug]/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const generateStaticParams = async () => {
};

export async function GET(req: Request, { params }: Props) {
const icon = loadDataUrl('public/assets/images/revoke-icon-orange-black.svg', 'image/svg+xml');
const icon = loadDataUrl('public/assets/images/revoke-icon-orange-black.png', 'image/png');

const t = await getTranslations({ locale: params.locale });
const exploit = await getExploitBySlug(params.slug, params.locale);
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/og.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const generateOgImage = ({ title, background }: OgImageProps) => {
});
}

const icon = loadDataUrl('public/assets/images/revoke-icon-orange-black.svg', 'image/svg+xml');
const icon = loadDataUrl('public/assets/images/revoke-icon-orange-black.png', 'image/png');

const response = (
<div tw="relative bg-white w-full h-full flex flex-col text-4xl leading-none items-center justify-center">
Expand Down

0 comments on commit 0e21d16

Please sign in to comment.