next-runtime-sitemap
Version:
Generates a sitemap for nextjs apps at runtime, using a crawl of the local filesystem
8 lines (7 loc) • 347 B
TypeScript
import { NextRequest, NextResponse } from "next/server";
import { FileIntrospectionProps } from "../lib/introspect-files";
export declare function generateAppRouterSitemap(fileIntrospectionProps?: FileIntrospectionProps): {
GET(request: NextRequest, props: Promise<any>): Promise<NextResponse>;
dynamic: string;
revalidate: number;
};