These are documented at nextjs.org/docs/advanced-features/measuring-performance. To enable them use
NEXT_PUBLIC_OURBIGBOOK_LOG_PERF
, the front-end-avaible version of OURBIGBOOK_LOG_PERF
:NEXT_PUBLIC_OURBIGBOOK_LOG_PERF=1 npm run dev
If enabled, we see a few metrics printed on the browser console such as:
{
"id": "1667591558646-5510113745482",
"name": "TTFB",
"startTime": 0,
"value": 2474.199999999255,
"label": "web-vital"
}
{
"id": "1667591558646-9119282792899",
"name": "LCP",
"startTime": 4982.099,
"value": 4982.099,
"label": "web-vital"
}