| Server IP : 14.225.204.176 / Your IP : 216.73.216.6 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/php/zinisoft.net-react/node_modules/next/dist/server/ |
Upload File : |
import type { AppType, DocumentType, NextComponentType } from '../shared/lib/utils';
import type { ClientReferenceManifest } from '../build/webpack/plugins/flight-manifest-plugin';
import type { PageConfig, GetStaticPaths, GetServerSideProps, GetStaticProps } from 'next/types';
import type { RouteModule } from './future/route-modules/route-module';
import type { BuildManifest } from './get-page-files';
export type ManifestItem = {
id: number | string;
files: string[];
};
export type ReactLoadableManifest = {
[moduleId: string]: ManifestItem;
};
/**
* A manifest entry type for the react-loadable-manifest.json.
*
* The whole manifest.json is a type of `Record<pathName, LoadableManifest>`
* where pathName is a string-based key points to the path of the page contains
* each dynamic imports.
*/
export interface LoadableManifest {
[k: string]: {
id: string | number;
files: string[];
};
}
export type LoadComponentsReturnType<NextModule = any> = {
Component: NextComponentType;
pageConfig: PageConfig;
buildManifest: BuildManifest;
subresourceIntegrityManifest?: Record<string, string>;
reactLoadableManifest: ReactLoadableManifest;
clientReferenceManifest?: ClientReferenceManifest;
serverActionsManifest?: any;
Document: DocumentType;
App: AppType;
getStaticProps?: GetStaticProps;
getStaticPaths?: GetStaticPaths;
getServerSideProps?: GetServerSideProps;
ComponentMod: NextModule;
routeModule?: RouteModule;
isAppPath?: boolean;
page: string;
};
/**
* Load manifest file with retries, defaults to 3 attempts.
*/
export declare function loadManifestWithRetries(manifestPath: string, attempts?: number): Promise<unknown>;
/**
* Load manifest file with retries, defaults to 3 attempts.
*/
export declare function evalManifestWithRetries(manifestPath: string, attempts?: number): Promise<unknown>;
declare function loadComponentsImpl<N = any>({ distDir, page, isAppPath, }: {
distDir: string;
page: string;
isAppPath: boolean;
}): Promise<LoadComponentsReturnType<N>>;
export declare const loadComponents: typeof loadComponentsImpl;
export {};