/opt/canhelp/node_modules/next/dist/build
NameSizeModeActions
adapter/-0755rm
analysis/-0755rm
babel/-0755rm
jest/-0755rm
manifests/-0755rm
next-config-ts/-0755rm
output/-0755rm
polyfills/-0755rm
segment-config/-0755rm
static-paths/-0755rm
swc/-0755rm
templates/-0755rm
turbopack-build/-0755rm
turborepo-access-trace/-0755rm
webpack/-0755rm
webpack-build/-0755rm
webpack-config-rules/-0755rm
after-production-compile.d.ts4310644editdlrm
after-production-compile.js33390644editdlrm
after-production-compile.js.map31290644editdlrm
build-context.d.ts20570644editdlrm
build-context.js16030644editdlrm
build-context.js.map40420644editdlrm
collect-build-traces.d.ts7570644editdlrm
collect-build-traces.js242760644editdlrm
collect-build-traces.js.map355400644editdlrm
compiler.d.ts5430644editdlrm
compiler.js32620644editdlrm
compiler.js.map48020644editdlrm
create-compiler-aliases.d.ts13070644editdlrm
create-compiler-aliases.js270860644editdlrm
create-compiler-aliases.js.map399590644editdlrm
define-env.d.ts12590644editdlrm
define-env.js147490644editdlrm
define-env.js.map231420644editdlrm
deployment-id.d.ts690644editdlrm
deployment-id.js4660644editdlrm
deployment-id.js.map5230644editdlrm
duration-to-string.d.ts760644editdlrm
duration-to-string.js7580644editdlrm
duration-to-string.js.map11010644editdlrm
entries.d.ts82020644editdlrm
entries.js378860644editdlrm
entries.js.map620370644editdlrm
generate-build-id.d.ts1380644editdlrm
generate-build-id.js10060644editdlrm
generate-build-id.js.map12150644editdlrm
get-babel-config-file.d.ts770644editdlrm
get-babel-config-file.js8560644editdlrm
get-babel-config-file.js.map10980644editdlrm
get-babel-loader-config.d.ts17130644editdlrm
get-babel-loader-config.js35570644editdlrm
get-babel-loader-config.js.map48960644editdlrm
handle-entrypoints.d.ts4700644editdlrm
handle-entrypoints.js65600644editdlrm
handle-entrypoints.js.map71740644editdlrm
handle-externals.d.ts14150644editdlrm
handle-externals.js144260644editdlrm
handle-externals.js.map216040644editdlrm
index.d.ts93240644editdlrm
index.js1538270644editdlrm
index.js.map2263100644editdlrm
is-writeable.d.ts740644editdlrm
is-writeable.js6530644editdlrm
is-writeable.js.map6560644editdlrm
load-entrypoint.d.ts10090644editdlrm
load-entrypoint.js15200644editdlrm
load-entrypoint.js.map31070644editdlrm
load-jsconfig.d.ts5140644editdlrm
load-jsconfig.js56930644editdlrm
load-jsconfig.js.map65350644editdlrm
next-dir-paths.d.ts1610644editdlrm
next-dir-paths.js11200644editdlrm
next-dir-paths.js.map7350644editdlrm
normalize-catchall-routes.d.ts6090644editdlrm
normalize-catchall-routes.js40820644editdlrm
normalize-catchall-routes.js.map66120644editdlrm
page-extensions-type.d.ts390644editdlrm
page-extensions-type.js1300644editdlrm
page-extensions-type.js.map670644editdlrm
preview-key-utils.d.ts2060644editdlrm
preview-key-utils.js37110644editdlrm
preview-key-utils.js.map59200644editdlrm
progress.d.ts1200644editdlrm
progress.js47460644editdlrm
progress.js.map46250644editdlrm
rendering-mode.d.ts5060644editdlrm
rendering-mode.js8260644editdlrm
rendering-mode.js.map7210644editdlrm
spinner.d.ts2180644editdlrm
spinner.js46630644editdlrm
spinner.js.map49780644editdlrm
type-check.d.ts5700644editdlrm
type-check.js72260644editdlrm
type-check.js.map92270644editdlrm
utils.d.ts87460644editdlrm
utils.js604000644editdlrm
utils.js.map959230644editdlrm
webpack-config.d.ts47890644editdlrm
webpack-config.js1137040644editdlrm
webpack-config.js.map1582530644editdlrm
worker.d.ts1720644editdlrm
worker.js8900644editdlrm
worker.js.map5230644editdlrm
write-build-id.d.ts870644editdlrm
write-build-id.js5590644editdlrm
write-build-id.js.map7180644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/build/utils.d.ts (8746B)
import type { NextConfigComplete } from '../server/config-shared'; import type { ExperimentalPPRConfig } from '../server/lib/experimental/ppr'; import type { AppBuildManifest } from './webpack/plugins/app-build-manifest-plugin'; import type { ServerRuntime } from '../types'; import type { BuildManifest } from '../server/get-page-files'; import type { CustomRoutes } from '../lib/load-custom-routes'; import type { MiddlewareManifest } from './webpack/plugins/middleware-plugin'; import type { WebpackLayerName } from '../lib/constants'; import '../server/require-hook'; import '../server/node-polyfill-crypto'; import '../server/node-environment'; import type { PageExtensions } from './page-extensions-type'; import type { FallbackMode } from '../lib/fallback'; import type { OutgoingHttpHeaders } from 'http'; import type { AppSegmentConfig } from './segment-config/app/app-segment-config'; import type { AppSegment } from './segment-config/app/app-segments'; import type { PrerenderedRoute } from './static-paths/types'; import type { CacheControl } from '../server/lib/cache-control'; export type ROUTER_TYPE = 'pages' | 'app'; export declare function unique(main: ReadonlyArray, sub: ReadonlyArray): T[]; export declare function difference(main: ReadonlyArray | ReadonlySet, sub: ReadonlyArray | ReadonlySet): T[]; type ComputeFilesGroup = { files: ReadonlyArray; size: { total: number; }; }; type ComputeFilesManifest = { unique: ComputeFilesGroup; common: ComputeFilesGroup; }; type ComputeFilesManifestResult = { router: { pages: ComputeFilesManifest; app?: ComputeFilesManifest; }; sizes: Map; }; export declare function computeFromManifest(manifests: { build: BuildManifest; app?: AppBuildManifest; }, distPath: string, gzipSize?: boolean, pageInfos?: Map): Promise; export declare function isMiddlewareFilename(file?: string | null): file is "middleware" | "src/middleware"; export declare function isInstrumentationHookFilename(file?: string | null): file is "instrumentation" | "src/instrumentation"; export interface PageInfo { originalAppPath: string | undefined; isHybridAmp?: boolean; size: number; totalSize: number; isStatic: boolean; isSSG: boolean; /** * If true, it means that the route has partial prerendering enabled. */ isRoutePPREnabled: boolean; ssgPageRoutes: string[] | null; initialCacheControl: CacheControl | undefined; pageDuration: number | undefined; ssgPageDurations: number[] | undefined; runtime: ServerRuntime; hasEmptyStaticShell?: boolean; hasPostponed?: boolean; isDynamicAppRoute?: boolean; } export type PageInfos = Map; export interface RoutesUsingEdgeRuntime { [route: string]: 0; } export declare function collectRoutesUsingEdgeRuntime(input: PageInfos): RoutesUsingEdgeRuntime; export declare function printTreeView(lists: { pages: ReadonlyArray; app: ReadonlyArray | undefined; }, pageInfos: Map, { distPath, buildId, pagesDir, pageExtensions, buildManifest, appBuildManifest, middlewareManifest, useStaticPages404, gzipSize, }: { distPath: string; buildId: string; pagesDir?: string; pageExtensions: PageExtensions; buildManifest: BuildManifest; appBuildManifest?: AppBuildManifest; middlewareManifest: MiddlewareManifest; useStaticPages404: boolean; gzipSize?: boolean; }): Promise; export declare function printCustomRoutes({ redirects, rewrites, headers, }: CustomRoutes): void; export declare function getJsPageSizeInKb(routerType: ROUTER_TYPE, page: string, distPath: string, buildManifest: BuildManifest, appBuildManifest?: AppBuildManifest, gzipSize?: boolean, cachedStats?: ComputeFilesManifestResult): Promise<[number, number]>; type PageIsStaticResult = { isRoutePPREnabled?: boolean; isStatic?: boolean; isAmpOnly?: boolean; isHybridAmp?: boolean; hasServerProps?: boolean; hasStaticProps?: boolean; prerenderedRoutes: PrerenderedRoute[] | undefined; prerenderFallbackMode: FallbackMode | undefined; rootParamKeys: readonly string[] | undefined; isNextImageImported?: boolean; traceIncludes?: string[]; traceExcludes?: string[]; appConfig?: AppSegmentConfig; }; export declare function isPageStatic({ dir, page, distDir, configFileName, runtimeEnvConfig, httpAgentOptions, locales, defaultLocale, parentId, pageRuntime, edgeInfo, pageType, cacheComponents, authInterrupts, originalAppPath, isrFlushToDisk, maxMemoryCacheSize, nextConfigOutput, cacheHandler, cacheHandlers, cacheLifeProfiles, pprConfig, buildId, sriEnabled, }: { dir: string; page: string; distDir: string; cacheComponents: boolean; authInterrupts: boolean; configFileName: string; runtimeEnvConfig: any; httpAgentOptions: NextConfigComplete['httpAgentOptions']; locales?: readonly string[]; defaultLocale?: string; parentId?: any; edgeInfo?: any; pageType?: 'pages' | 'app'; pageRuntime?: ServerRuntime; originalAppPath?: string; isrFlushToDisk?: boolean; maxMemoryCacheSize?: number; cacheHandler?: string; cacheHandlers?: Record; cacheLifeProfiles?: { [profile: string]: import('../server/use-cache/cache-life').CacheLife; }; nextConfigOutput: 'standalone' | 'export' | undefined; pprConfig: ExperimentalPPRConfig | undefined; buildId: string; sriEnabled: boolean; }): Promise; type ReducedAppConfig = Pick; /** * Collect the app config from the generate param segments. This only gets a * subset of the config options. * * @param segments the generate param segments * @returns the reduced app config */ export declare function reduceAppConfig(segments: Pick[]): ReducedAppConfig; export declare function hasCustomGetInitialProps({ page, distDir, runtimeEnvConfig, checkingApp, sriEnabled, }: { page: string; distDir: string; runtimeEnvConfig: any; checkingApp: boolean; sriEnabled: boolean; }): Promise; export declare function getDefinedNamedExports({ page, distDir, runtimeEnvConfig, sriEnabled, }: { page: string; distDir: string; runtimeEnvConfig: any; sriEnabled: boolean; }): Promise>; export declare function detectConflictingPaths(combinedPages: string[], ssgPages: Set, additionalGeneratedSSGPaths: Map): void; export declare function copyTracedFiles(dir: string, distDir: string, pageKeys: readonly string[], appPageKeys: readonly string[] | undefined, tracingRoot: string, serverConfig: NextConfigComplete, middlewareManifest: MiddlewareManifest, hasNodeMiddleware: boolean, hasInstrumentationHook: boolean, staticPages: Set): Promise; export declare function isReservedPage(page: string): boolean; export declare function isAppBuiltinNotFoundPage(page: string): boolean; export declare function isCustomErrorPage(page: string): page is "/500" | "/404"; export declare function isMiddlewareFile(file: string): file is "/middleware" | "/src/middleware"; export declare function isInstrumentationHookFile(file: string): file is "/instrumentation" | "/src/instrumentation"; export declare function getPossibleInstrumentationHookFilenames(folder: string, extensions: string[]): string[]; export declare function getPossibleMiddlewareFilenames(folder: string, extensions: string[]): string[]; export declare class NestedMiddlewareError extends Error { constructor(nestedFileNames: string[], mainDir: string, pagesOrAppDir: string); } export declare function getSupportedBrowsers(dir: string, isDevelopment: boolean): string[]; export declare function shouldUseReactServerCondition(layer: WebpackLayerName | null | undefined): boolean; export declare function isWebpackClientOnlyLayer(layer: WebpackLayerName | null | undefined): boolean; export declare function isWebpackDefaultLayer(layer: WebpackLayerName | null | undefined): boolean; export declare function isWebpackBundledLayer(layer: WebpackLayerName | null | undefined): boolean; export declare function isWebpackAppPagesLayer(layer: WebpackLayerName | null | undefined): boolean; export declare function collectMeta({ status, headers, }: { status?: number; headers?: OutgoingHttpHeaders; }): { status?: number; headers?: Record; }; export declare const RSPACK_DEFAULT_LAYERS_REGEX: RegExp; export {};