loadAssets() — ui Function Reference
Architecture documentation for the loadAssets() function in route.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 2a58709f_95bf_6a98_eea7_96b522efaf5b["loadAssets()"] 784eddfa_1dd5_dc3d_821f_f0f1c7ba1693["route.tsx"] 2a58709f_95bf_6a98_eea7_96b522efaf5b -->|defined in| 784eddfa_1dd5_dc3d_821f_f0f1c7ba1693 bf7df3d2_9c23_c51d_ebb4_5d13511ba0da["GET()"] bf7df3d2_9c23_c51d_ebb4_5d13511ba0da -->|calls| 2a58709f_95bf_6a98_eea7_96b522efaf5b style 2a58709f_95bf_6a98_eea7_96b522efaf5b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/app/og/route.tsx lines 3–36
async function loadAssets(): Promise<
{ name: string; data: Buffer; weight: 400 | 600; style: "normal" }[]
> {
const [
{ base64Font: normal },
{ base64Font: mono },
{ base64Font: semibold },
] = await Promise.all([
import("./geist-regular-otf.json").then((mod) => mod.default || mod),
import("./geistmono-regular-otf.json").then((mod) => mod.default || mod),
import("./geist-semibold-otf.json").then((mod) => mod.default || mod),
])
return [
{
name: "Geist",
data: Buffer.from(normal, "base64"),
weight: 400 as const,
style: "normal" as const,
},
{
name: "Geist Mono",
data: Buffer.from(mono, "base64"),
weight: 400 as const,
style: "normal" as const,
},
{
name: "Geist",
data: Buffer.from(semibold, "base64"),
weight: 600 as const,
style: "normal" as const,
},
]
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does loadAssets() do?
loadAssets() is a function in the ui codebase, defined in apps/v4/app/og/route.tsx.
Where is loadAssets() defined?
loadAssets() is defined in apps/v4/app/og/route.tsx at line 3.
What calls loadAssets()?
loadAssets() is called by 1 function(s): GET.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free