UNPKG

next

Version:

The React Framework

43 lines (42 loc) 1.7 kB
import type { NextConfigComplete } from '../config-shared'; import '../require-hook'; import '../node-environment'; import type { StaticPathsResult } from '../../build/static-paths/types'; import type { IncrementalCache } from '../lib/incremental-cache'; import { type ExperimentalPPRConfig } from '../lib/experimental/ppr'; type RuntimeConfig = { pprConfig: ExperimentalPPRConfig | undefined; configFileName: string; publicRuntimeConfig: { [key: string]: any; }; serverRuntimeConfig: { [key: string]: any; }; dynamicIO: boolean; }; export declare function loadStaticPaths({ dir, distDir, pathname, config, httpAgentOptions, locales, defaultLocale, isAppPath, page, isrFlushToDisk, fetchCacheKeyPrefix, maxMemoryCacheSize, requestHeaders, cacheHandler, cacheHandlers, cacheLifeProfiles, nextConfigOutput, buildId, authInterrupts, sriEnabled, }: { dir: string; distDir: string; pathname: string; config: RuntimeConfig; httpAgentOptions: NextConfigComplete['httpAgentOptions']; locales?: readonly string[]; defaultLocale?: string; isAppPath: boolean; page: string; isrFlushToDisk?: boolean; fetchCacheKeyPrefix?: string; maxMemoryCacheSize?: number; requestHeaders: IncrementalCache['requestHeaders']; cacheHandler?: string; cacheHandlers?: NextConfigComplete['experimental']['cacheHandlers']; cacheLifeProfiles?: { [profile: string]: import('../../server/use-cache/cache-life').CacheLife; }; nextConfigOutput: 'standalone' | 'export' | undefined; buildId: string; authInterrupts: boolean; sriEnabled: boolean; }): Promise<Partial<StaticPathsResult>>; export {};