next.js
9ec93b53 - docs: explain complementary Web Vitals and custom metrics APIs (#98968)

Commit
23 days ago
docs: explain complementary Web Vitals and custom metrics APIs (#98968) ### What `useReportWebVitals` gets the Web Vitals and the `reportWebVitals` export from `pages/_app` gets the Next.js custom metrics, so the docs now show both in one `pages/_app` example. Also updated both page descriptions and fixed a missing closing parenthesis in the Google Analytics sample. ### Why The page read like one replaces the other, but each one only gets its own set of metrics. Refs #63657 ### Checklist - [x] Prettier 3.6.2 check passed on both changed MDX files. - [x] Read the Docs Contribution Guide.
Parents
Loading