pages.json.js — astro Source File
Architecture documentation for pages.json.js, a javascript file in the astro codebase.
Entity Profile
Relationship Graph
Source Code
export async function GET() {
const mdxPages = await import.meta.glob('./*.mdx', { eager: true });
return Response.json({
headingsByPage: Object.fromEntries(
Object.entries(mdxPages ?? {}).map(([k, v]) => [k, v?.getHeadings()])
),
});
}
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does pages.json.js do?
pages.json.js is a source file in the astro codebase, written in javascript. It belongs to the CoreAstro domain, CoreMiddleware subdomain.
What functions are defined in pages.json.js?
pages.json.js defines 1 function(s): GET.
Where is pages.json.js in the architecture?
pages.json.js is located at packages/integrations/mdx/test/fixtures/mdx-get-headings/src/pages/pages.json.js (domain: CoreAstro, subdomain: CoreMiddleware, directory: packages/integrations/mdx/test/fixtures/mdx-get-headings/src/pages).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free