Files
voyage/apps/public-web/node_modules/next/dist/build/generate-routes-manifest.d.ts
PascalSchattenburg d147843c76 feat(blog): add file-based blog with dynamic slugs, MDX content and layout shell
- Introduced blog routing using Next.js App Router
- Implemented dynamic [slug] pages for blog posts
- Added MDX-based content loading via lib/posts
- Integrated shared TopBar layout with navigation
- Established clear content, lib and component separation
2026-01-22 14:14:15 +01:00

29 lines
1.1 KiB
TypeScript

import type { NextConfigComplete } from '../server/config-shared';
import type { CustomRoutes } from '../lib/load-custom-routes';
import type { DynamicManifestRoute } from './utils';
import type { RoutesManifest } from './index';
export interface GenerateRoutesManifestOptions {
pageKeys: {
pages: string[];
app?: string[];
};
config: NextConfigComplete;
redirects: CustomRoutes['redirects'];
headers: CustomRoutes['headers'];
rewrites: CustomRoutes['rewrites'];
restrictedRedirectPaths: string[];
isAppPPREnabled: boolean;
appType: 'pages' | 'app' | 'hybrid';
}
export interface GenerateRoutesManifestResult {
routesManifest: RoutesManifest;
dynamicRoutes: Array<DynamicManifestRoute>;
sourcePages: Map<string, string>;
}
/**
* Generates the routes manifest from the given page keys and configuration.
* This function extracts the route manifest generation logic to be reusable
* across different build contexts (webpack build, turbopack build, analyze, etc.)
*/
export declare function generateRoutesManifest(options: GenerateRoutesManifestOptions): GenerateRoutesManifestResult;