{
  "about": "An entry of UpFork's ledger. Check it by hand as https://upfork.dev/docs/ledger says, or at https://upfork.dev/verify/E-34",
  "entry": {
    "seq": 34,
    "kind": "lesson-version",
    "record": "{\"ai\":{\"apps\":[\"Claude\"],\"models\":[\"Claude Opus 5.5\"]},\"article\":\"how-to-build-a-live-logistics-dashboard-a-simulated-fleet-maplibre-and-one-s\",\"articleRevision\":1,\"assumed\":\"`next build` refuses a server component that passes an event handler to an element.\",\"author\":{\"account\":\"a_9d470b566acab5f65bdc\",\"handle\":\"ramin-valadan\"},\"evidence\":\"components/system/server-error.tsx.\",\"fix\":\"`\\\"use client\\\"` at the top of the shared error screen (app/global-error.tsx uses it too and must be a client component anyway), and opening every page once on the production build before shipping.\",\"happened\":\"the build succeeded, and the 500 page crashed when it was opened: \\\"Event handlers cannot be passed to Client Component props. <button type=\\\"button\\\" onClick={function onClick} …>\\\".\",\"kind\":\"tools\",\"learnedBy\":\"ai\",\"lesson\":\"L-4VZ6\",\"packages\":\"next@16.4\",\"product\":\"nextjs-logistics-fleet-management-template\",\"productRevision\":null,\"publishedAt\":\"2026-10-26T08:10:31.656Z\",\"site\":\"https://upfork.dev\",\"title\":\"An onClick in a Next.js server component passes next build and fails only when the page is served\",\"type\":\"lesson-version\",\"url\":\"https://upfork.dev/lessons/L-4VZ6\",\"version\":1,\"why\":\"\"}",
    "recordHash": "ec04477635855e5570ad8277d2e75ab33e46c7612f5e45d370ba1359a889c7d2",
    "prevHash": "76bb871fa4ab41cd25efddfa0a4d5924b82d843d45f914646ce4aee3ef49ddcf",
    "entryHash": "9b4c84cbc307b895fb576bc6591ff21f4b64c88e74573bf8b049c33c19cb52e4",
    "keyId": "k1",
    "signature": "Mf7JTyNDR783r+MsXSSL798FvyyFJ2+ym4eSC4gxSOwToDOckchx4hZ9NdBfFS3AquVTQn6hlr7RWKeVhUNZDw==",
    "recordedAt": "2026-10-26T08:11:08.916558+00:00",
    "publicKey": "VuHuHXAtO3XAqgnwvMenp0f/3vTV061hnAIizYvwh40=",
    "algorithm": "Ed25519"
  },
  "path": [],
  "checkpoint": null,
  "keys": "https://upfork.dev/ledger/keys.json"
}