Home / Function/ loadAssets() — ui Function Reference

loadAssets() — ui Function Reference

Architecture documentation for the loadAssets() function in route.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  67a61a70_ea6d_d43c_bd80_7e574bd15591["loadAssets()"]
  8acacf89_8b2a_e317_20a4_c8f7bb2d83b1["route.tsx"]
  67a61a70_ea6d_d43c_bd80_7e574bd15591 -->|defined in| 8acacf89_8b2a_e317_20a4_c8f7bb2d83b1
  05aaea85_1118_3f0c_ff49_edaceb3ac8f9["GET()"]
  05aaea85_1118_3f0c_ff49_edaceb3ac8f9 -->|calls| 67a61a70_ea6d_d43c_bd80_7e574bd15591
  style 67a61a70_ea6d_d43c_bd80_7e574bd15591 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/app/(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,
    },
  ]
}

Subdomains

Called By

Frequently Asked Questions

What does loadAssets() do?
loadAssets() is a function in the ui codebase, defined in deprecated/www/app/(app)/og/route.tsx.
Where is loadAssets() defined?
loadAssets() is defined in deprecated/www/app/(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