next.js
545cda3d - docs: remove non-existent renderType from onRequestError example (#74448)

Commit
1 day ago
docs: remove non-existent renderType from onRequestError example (#74448) Happy New Year! Wishing you and your team all the best in the year ahead. The `renderType` property is mentioned for the onRequestError function in the example. However, it is not defined in the [RequestErrorContext type](https://github.com/vercel/next.js/blob/35acd7e1faae66feddeffe6362fae9fb5a5b1281/packages/next/src/server/instrumentation/types.ts#L1-L11) nor used in the Next.js source code. (Perhaps this property is planned for future implementation?) This PR removes the property from the example to align the documentation with the current implementation. If renderType is intended for future use, please kindly disregard this PR.
Author
Parents
Loading