Function: createNextJsAttributes()
@arolariu/website / instrumentation.server / createNextJsAttributes
Function: createNextJsAttributes()
createNextJsAttributes(
renderContext,options?):NextJsAttributes
Defined in: instrumentation.server.ts:769
Create Next.js rendering semantic attributes.
Parameters
renderContext
Rendering context (server, client, edge, api)
options?
Additional Next.js attributes
route?
string
pageType?
"static" | "dynamic" | "isr"
serverComponents?
boolean
cacheHit?
boolean
runtime?
"edge" | "nodejs"
Returns
Type-safe Next.js attributes
Example
const attrs = createNextJsAttributes('server', {
route: '/dashboard/[id]',
pageType: 'dynamic',
serverComponents: true,
});
// was this page useful?