Edit this page
onPrerenderStart()
hook
The onPrerenderStart()
hook is called once when pre-rendering starts.
It receives as argument an array of all page contexts to be pre-rendered, and returns
a new array of page contexts, giving you a chance to add/remove/modify pages. This is usually used for
internationalization.
TypeScript
Don't omit
ReturnType<OnPrerenderStartAsync>
otherwise TypeScript won't strictly check the return type.
See API >
pageContext
> Typescript for more information on how to extendpageContext
with your own extra properties.