/** * Static handler definition for build-time rendering of individual segments. * * Static wraps a handler so that in production the segment is * rendered once at build time. The handler is then replaced with a static * asset import -- no runtime store lookup needed. * * In dev mode, Static behaves as a normal handler: the wrapped * function runs on every request, identical to a regular layout/path handler. * * The $$id is auto-generated by the Vite exposeInternalIds plugin based on * file path and export name. No manual naming required. * * Key difference from Prerender: * - Prerender: route-scoped, produces URLs via getParams, renders subtree per-params * - Static: segment-scoped, renders once, no URLs, no params * * Works on: layout(), parallel(), and path(). * * @example * ```ts * export const DocsNav = Static((ctx) =>