Skip to content

Commit 7bea038

Browse files
authored
Merge branch 'main' into feat/surf-inference
2 parents 1b95ccf + b27cfde commit 7bea038

52 files changed

Lines changed: 57 additions & 61 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

scripts/generate-og-descriptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function extractOgDescription(content: string): string | null {
1111
const match = content.match(/^---\s*\n([\s\S]*?)\n---/);
1212
if (!match) return null;
1313
const fm = match[1];
14-
const descMatch = fm.match(/^ogDescription:\s*"(.+)"\s*$/m);
14+
const descMatch = fm.match(/^imageDescription:\s*"(.+)"\s*$/m);
1515
return descMatch ? descMatch[1] : null;
1616
}
1717

src/components/NotFoundPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,15 +161,15 @@ export function NotFoundPage() {
161161
className="overflow-hidden max-w-full mb-8"
162162
style={{
163163
fontFamily: "monospace",
164-
lineHeight: 1.15,
164+
lineHeight: 1.8,
165165
whiteSpace: "pre",
166166
letterSpacing: "1px",
167167
color: "var(--vocs-text-color-heading)",
168168
opacity: 0.85,
169169
}}
170170
>
171171
<div
172-
className="text-[2.5px] sm:text-[4px] md:text-[5px] lg:text-[6px]"
172+
className="text-[3px] sm:text-[4px] md:text-[5px] lg:text-[6px]"
173173
style={{ minWidth: "fit-content" }}
174174
>
175175
{mppLines.map((mppLine, lineIdx) => {

src/pages/_api/api/og.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-nocheck – server-only, uses Vite ?raw import and resvg native module
22
import { initWasm, Resvg } from "@resvg/resvg-wasm";
33
import resvgWasm from "@resvg/resvg-wasm/index_bg.wasm?url";
4-
import ogDescriptions from "../../../generated/og-descriptions.json";
4+
import imageDescriptions from "../../../generated/og-descriptions.json";
55
import templateSvg from "./og-template.svg?raw";
66

77
const BLOB = "https://wgfdjv2jfqz2dlpx.public.blob.vercel-storage.com";
@@ -230,7 +230,7 @@ export async function GET(request: Request) {
230230
const rawDescription = url.searchParams.get("description") || "";
231231
const path = decodeURIComponent(url.searchParams.get("path") || "");
232232
const description =
233-
(ogDescriptions as Record<string, string>)[path] || rawDescription;
233+
(imageDescriptions as Record<string, string>)[path] || rawDescription;
234234
const category = getCategoryForPath(path);
235235
const subcategory = getSubcategoryForPath(path);
236236

src/pages/_layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,14 +447,14 @@ export default function Layout(props: React.PropsWithChildren) {
447447
)}
448448
<link
449449
rel="preload"
450-
href="/fonts/VTCDuBois-Regular.woff2"
450+
href="https://wgfdjv2jfqz2dlpx.public.blob.vercel-storage.com/fonts/VTCDuBois-Regular.woff2"
451451
as="font"
452452
type="font/woff2"
453453
crossOrigin="anonymous"
454454
/>
455455
<link
456456
rel="preload"
457-
href="/fonts/VTCDuBois-Bold.woff2"
457+
href="https://wgfdjv2jfqz2dlpx.public.blob.vercel-storage.com/fonts/VTCDuBois-Bold.woff2"
458458
as="font"
459459
type="font/woff2"
460460
crossOrigin="anonymous"

src/pages/_root.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,17 @@
3131

3232
@font-face {
3333
font-family: "VTC Du Bois";
34-
src: url("/fonts/VTCDuBois-Regular.woff2") format("woff2");
34+
src: url("https://wgfdjv2jfqz2dlpx.public.blob.vercel-storage.com/fonts/VTCDuBois-Regular.woff2")
35+
format("woff2");
3536
font-weight: 400;
3637
font-style: normal;
3738
font-display: swap;
3839
}
3940

4041
@font-face {
4142
font-family: "VTC Du Bois";
42-
src: url("/fonts/VTCDuBois-Bold.woff2") format("woff2");
43+
src: url("https://wgfdjv2jfqz2dlpx.public.blob.vercel-storage.com/fonts/VTCDuBois-Bold.woff2")
44+
format("woff2");
4345
font-weight: 700;
4446
font-style: normal;
4547
font-display: swap;

src/pages/brand.mdx

Lines changed: 1 addition & 1 deletion

src/pages/faq.mdx

Lines changed: 1 addition & 1 deletion

src/pages/guides/building-with-an-llm.mdx

Lines changed: 1 addition & 1 deletion

src/pages/guides/multiple-payment-methods.mdx

Lines changed: 1 addition & 1 deletion

src/pages/guides/one-time-payments.mdx

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)