CodeQL library for JavaScript
Search

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)