Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fixed broken stats dynamic og image

Steven Tey4f2875a335e4
diff --git a/pages/api/og/stats.tsx b/pages/api/og/stats.tsx
index 950131a287..d1a9ae6009 100644
--- a/pages/api/og/stats.tsx
+++ b/pages/api/og/stats.tsx
@@ -2,6 +2,7 @@ import { ImageResponse, NextRequest } from "next/server";
import { getLinkViaEdge } from "#/lib/planetscale";
import { getStats } from "#/lib/stats";
import { nFormatter, truncate } from "#/lib/utils";
+import { DUB_LOGO } from "#/lib/constants";
export const runtime = "edge";
export const contentType = "image/png";
@@ -54,7 +55,7 @@ export default async function handler(req: NextRequest) {
}}
>
<img
- src="https://public.blob.vercel-storage.com/kmKY9FhOzDRAX28c/diIX27B-vli9jFicKhqvO4Dzb2IrgHbaOdRLcT.png"
+ src={DUB_LOGO}
style={{
width: "80px",
height: "80px",