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.

Update route.tsx

Kiran K227519191c6a
diff --git a/apps/web/app/api/workspaces/[idOrSlug]/billing/invoices/[invoiceId]/route.tsx b/apps/web/app/api/workspaces/[idOrSlug]/billing/invoices/[invoiceId]/route.tsx
index fb7c14c5a8..1919393522 100644
--- a/apps/web/app/api/workspaces/[idOrSlug]/billing/invoices/[invoiceId]/route.tsx
+++ b/apps/web/app/api/workspaces/[idOrSlug]/billing/invoices/[invoiceId]/route.tsx
@@ -17,10 +17,15 @@ import Stripe from "stripe";
export const dynamic = "force-dynamic";
+// Font.register({
+// family: "Inter",
+// src: "../",
+// });
+
const tw = createTw({
theme: {
fontFamily: {
- sans: ["Inter"],
+ // sans: ["Times-Bold"],
},
},
});
@@ -145,7 +150,7 @@ export const GET = withWorkspace(async ({ workspace, params }) => {
const pdf = await renderToBuffer(
<Document>
- <Page size="A4" style={tw("p-20")}>
+ <Page size="A4" style={tw("p-20 font-sans")}>
<View style={tw("flex-row justify-between items-center mb-10")}>
<Image
src="https://dubassets.com/logos/clrei1gld0002vs9mzn93p8ik_384uSfo"