This commit is contained in:
Kismet Hasanaj
2026-05-02 20:07:02 +02:00
parent ce8672e283
commit 34dc9aec52
9428 changed files with 1733330 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
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'];
onMatchHeaders: CustomRoutes['headers'];
rewrites: CustomRoutes['rewrites'];
restrictedRedirectPaths: string[];
isAppPPREnabled: boolean;
appType: 'pages' | 'app' | 'hybrid';
deploymentId?: string;
}
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;