mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-10-25 02:31:30 +00:00
Hanzo CI/CD / cicd (push) Failing after 1h10m29s
CI/CD / cicd (push) Failing after 2h37m43s
A static export has no host when it prerenders, so BrandProvider renders the
tree only once the browser has resolved the host, pages that show the brand
are client components, the static head names no brand, and the title and
favicon come from the host. The chain page keeps its static params and
metadata on the server and renders its body on the client, with RPC endpoints
on the brand's API origin at /v1/rpc/{chain}/{network}.
Hanzo's API origin is web3.hanzo.ai itself. The node fleet view, its landing
strip and its nav link belong to the brand that operates a fleet, which is
Lux alone. llms.txt, one file for every host, names no brand and points at
each host's own /docs/api.
Marketing copy states no certification the company does not hold and no
unmeasured uptime, latency, volume or response-time figure. Every internal
link points at a page that exists, every catalog chain is prerendered, and
the routes test holds page bodies to zero dead links.
Co-authored-by: Hanzo Dev <[email protected]>
29 lines
893 B
TypeScript
29 lines
893 B
TypeScript
import { notFound } from "next/navigation"
|
|
import { CHAINS, getChainBySlug } from "@/lib/chains"
|
|
import { ChainDetail } from "./chain-detail"
|
|
|
|
// Every chain in the catalog is a page, so every card on /chains links to one.
|
|
export function generateStaticParams() {
|
|
return CHAINS.map((c) => ({ slug: c.slug }))
|
|
}
|
|
|
|
export async function generateMetadata({ params }: { params: Promise<{ slug: string }> }) {
|
|
const { slug } = await params
|
|
const chain = getChainBySlug(slug)
|
|
if (!chain) return { title: "Chain Not Found" }
|
|
return {
|
|
title: `${chain.name} - RPC & APIs`,
|
|
description: `${chain.name} RPC endpoints, token and NFT APIs, WebSockets and webhooks.`,
|
|
}
|
|
}
|
|
|
|
export default async function ChainDetailPage({
|
|
params,
|
|
}: {
|
|
params: Promise<{ slug: string }>
|
|
}) {
|
|
const { slug } = await params
|
|
if (!getChainBySlug(slug)) notFound()
|
|
return <ChainDetail slug={slug} />
|
|
}
|