({
dynamicPages,
pagesDir,
config = {},
functionsConfigManifest,
privateOutputs,
files,
baseDir,
workPath,
entryPath,
nodeVersion,
buildId,
escapedBuildId,
dynamicPrefix,
entryDirectory,
outputDirectory,
redirects,
beforeFilesRewrites,
afterFilesRewrites,
fallbackRewrites,
headers,
onMatchHeaders,
dataRoutes,
hasIsr404Page,
hasIsr500Page,
imagesManifest,
wildcardConfig,
routesManifest,
staticPages,
lambdaPages,
localePrefixed404,
nextVersion,
lambdaAppPaths,
canUsePreviewMode,
trailingSlash,
prerenderManifest,
appPathRoutesManifest,
omittedPrerenderRoutes,
trailingSlashRedirects,
isCorrectLocaleAPIRoutes,
requiredServerFilesManifest,
variantsManifest,
experimentalPPRRoutes,
isAppPPREnabled,
isAppFullPPREnabled,
isAppClientSegmentCacheEnabled,
isAppClientParamParsingEnabled,
clientParamParsingOrigins,
}: {
appPathRoutesManifest?: Record<string, string>;
dynamicPages: string[];
trailingSlash: boolean;
config: Config;
functionsConfigManifest?: FunctionsConfigManifestV1;
pagesDir: string;
baseDir: string;
canUsePreviewMode: boolean;
omittedPrerenderRoutes: ReadonlySet<string>;
localePrefixed404: boolean;
staticPages: { [key: string]: FileFsRef };
lambdaAppPaths: { [key: string]: FileFsRef };
lambdaPages: { [key: string]: FileFsRef };
privateOutputs: { files: Files; routes: Route[] };
entryPath: string;
dynamicPrefix: string;
buildId: string;
escapedBuildId: string;
wildcardConfig: BuildResult['wildcard'];
nodeVersion: NodeVersion;
entryDirectory: string;
outputDirectory: string;
headers: Route[];
onMatchHeaders: Route[];
workPath: string;
beforeFilesRewrites: Route[];
afterFilesRewrites: Route[];
fallbackRewrites: Route[];
redirects: Route[];
dataRoutes: Route[];
nextVersion: string;
hasIsr404Page: boolean;
hasIsr500Page: boolean;
trailingSlashRedirects: Route[];
routesManifest: RoutesManifest;
isCorrectLocaleAPIRoutes: boolean;
imagesManifest?: NextImagesManifest;
prerenderManifest: NextPrerenderedRoutes;
requiredServerFilesManifest: NextRequiredServerFilesManifest;
variantsManifest: VariantsManifest | null;
experimentalPPRRoutes: ReadonlySet<string>;
isAppPPREnabled: boolean;
files: Files;
/**
* When this is true, then it means all routes are PPR enabled. PPR is not
* enabled in incremental mode and all routes will be prerendered.
*/
isAppFullPPREnabled: boolean;
isAppClientSegmentCacheEnabled: boolean;
isAppClientParamParsingEnabled: boolean;
clientParamParsingOrigins: string[] | undefined;
})
| 110 | 'next/dist/compiled/next-server/server.runtime.prod.js'; |
| 111 | |
| 112 | export async function serverBuild({ |
| 113 | dynamicPages, |
| 114 | pagesDir, |
| 115 | config = {}, |
| 116 | functionsConfigManifest, |
| 117 | privateOutputs, |
| 118 | files, |
| 119 | baseDir, |
| 120 | workPath, |
| 121 | entryPath, |
| 122 | nodeVersion, |
| 123 | buildId, |
| 124 | escapedBuildId, |
| 125 | dynamicPrefix, |
| 126 | entryDirectory, |
| 127 | outputDirectory, |
| 128 | redirects, |
| 129 | beforeFilesRewrites, |
| 130 | afterFilesRewrites, |
| 131 | fallbackRewrites, |
| 132 | headers, |
| 133 | onMatchHeaders, |
| 134 | dataRoutes, |
| 135 | hasIsr404Page, |
| 136 | hasIsr500Page, |
| 137 | imagesManifest, |
| 138 | wildcardConfig, |
| 139 | routesManifest, |
| 140 | staticPages, |
| 141 | lambdaPages, |
| 142 | localePrefixed404, |
| 143 | nextVersion, |
| 144 | lambdaAppPaths, |
| 145 | canUsePreviewMode, |
| 146 | trailingSlash, |
| 147 | prerenderManifest, |
| 148 | appPathRoutesManifest, |
| 149 | omittedPrerenderRoutes, |
| 150 | trailingSlashRedirects, |
| 151 | isCorrectLocaleAPIRoutes, |
| 152 | requiredServerFilesManifest, |
| 153 | variantsManifest, |
| 154 | experimentalPPRRoutes, |
| 155 | isAppPPREnabled, |
| 156 | isAppFullPPREnabled, |
| 157 | isAppClientSegmentCacheEnabled, |
| 158 | isAppClientParamParsingEnabled, |
| 159 | clientParamParsingOrigins, |
| 160 | }: { |
| 161 | appPathRoutesManifest?: Record<string, string>; |
| 162 | dynamicPages: string[]; |
| 163 | trailingSlash: boolean; |
| 164 | config: Config; |
| 165 | functionsConfigManifest?: FunctionsConfigManifestV1; |
| 166 | pagesDir: string; |
| 167 | baseDir: string; |
| 168 | canUsePreviewMode: boolean; |
| 169 | omittedPrerenderRoutes: ReadonlySet<string>; |
no test coverage detected