Files
voyage/apps/public-web/node_modules/next/dist/server/app-render/collect-segment-data.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

27 lines
1.1 KiB
TypeScript

import type { DynamicParamTypesShort, LoadingModuleData } from '../../shared/lib/app-router-types';
import type { ManifestNode } from '../../build/webpack/plugins/flight-manifest-plugin';
import { type SegmentRequestKey } from '../../shared/lib/segment-cache/segment-value-encoding';
export type RootTreePrefetch = {
buildId: string;
tree: TreePrefetch;
staleTime: number;
};
export type TreePrefetch = {
name: string;
paramType: DynamicParamTypesShort | null;
paramKey: string | null;
slots: null | {
[parallelRouteKey: string]: TreePrefetch;
};
/** Whether this segment should be fetched using a runtime prefetch */
hasRuntimePrefetch: boolean;
isRootLayout: boolean;
};
export type SegmentPrefetch = {
buildId: string;
rsc: React.ReactNode | null;
loading: LoadingModuleData | Promise<LoadingModuleData>;
isPartial: boolean;
};
export declare function collectSegmentData(isCacheComponentsEnabled: boolean, fullPageDataBuffer: Buffer, staleTime: number, clientModules: ManifestNode, serverConsumerManifest: any): Promise<Map<SegmentRequestKey, Buffer>>;