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

Predicate NextJS::getStaticPropsFunction

Gets the getStaticProps function in a Next.js page. This function is executed at build time, or when a page with a new URL is requested for the first time (if fallback is not false).

Import path

import javascript
FunctionNode getStaticPropsFunction(Module pageModule)