CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.13 (changelog, source)
Search

Predicate NextJS::getInitialProps

Gets the getInitialProps function in a Next.js page. This function is executed on the server every time a request for the page is made. The function receives a context parameter, which includes HTTP request/response objects.

Import path

import javascript
FunctionNode getInitialProps(Module pageModule)