pub fn collect_exports(program: &Program) -> Result<Option<ExportInfo>>
Expand description
Collects static page export information for the next.js from given source’s AST. This is being used for some places like detecting page is a dynamic route or not, or building a PageStaticInfo object.