/opt/canhelp/node_modules/next/dist/esm/server/dev
NameSizeModeActions
browser-logs/-0755rm
dev-indicator-server-state.js1200644editdlrm
dev-indicator-server-state.js.map3690644editdlrm
get-source-map-from-file.js28830644editdlrm
get-source-map-from-file.js.map42830644editdlrm
hot-middleware.js94980644editdlrm
hot-middleware.js.map147850644editdlrm
hot-reloader-turbopack.js432230644editdlrm
hot-reloader-turbopack.js.map662380644editdlrm
hot-reloader-types.js13630644editdlrm
hot-reloader-types.js.map59060644editdlrm
hot-reloader-webpack.js641760644editdlrm
hot-reloader-webpack.js.map984580644editdlrm
log-requests.js42970644editdlrm
log-requests.js.map84950644editdlrm
messages.js1490644editdlrm
messages.js.map2990644editdlrm
middleware-turbopack.js154550644editdlrm
middleware-turbopack.js.map254990644editdlrm
middleware-webpack.js191690644editdlrm
middleware-webpack.js.map330060644editdlrm
next-dev-server.js331270644editdlrm
next-dev-server.js.map578810644editdlrm
node-stack-frames.js20510644editdlrm
node-stack-frames.js.map36000644editdlrm
on-demand-entry-handler.js297350644editdlrm
on-demand-entry-handler.js.map499910644editdlrm
parse-version-info.js20130644editdlrm
parse-version-info.js.map33270644editdlrm
require-cache.js11450644editdlrm
require-cache.js.map20690644editdlrm
static-paths-worker.js35550644editdlrm
static-paths-worker.js.map70580644editdlrm
turbopack-utils.js283770644editdlrm
turbopack-utils.js.map470290644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/esm/server/dev/static-paths-worker.js (3555B)
import '../require-hook'; import '../node-environment'; import { reduceAppConfig } from '../../build/utils'; import { collectSegments } from '../../build/segment-config/app/app-segments'; import { loadComponents } from '../load-components'; import { setHttpClientAndAgentOptions } from '../setup-http-agent-env'; import { isAppPageRouteModule } from '../route-modules/checks'; import { checkIsRoutePPREnabled } from '../lib/experimental/ppr'; import { InvariantError } from '../../shared/lib/invariant-error'; import { collectRootParamKeys } from '../../build/segment-config/app/collect-root-param-keys'; import { buildAppStaticPaths } from '../../build/static-paths/app'; import { buildPagesStaticPaths } from '../../build/static-paths/pages'; import { createIncrementalCache } from '../../export/helpers/create-incremental-cache'; // we call getStaticPaths in a separate process to ensure // side-effects aren't relied on in dev that will break // during a production build export async function loadStaticPaths({ dir, distDir, pathname, config, httpAgentOptions, locales, defaultLocale, isAppPath, page, isrFlushToDisk, fetchCacheKeyPrefix, maxMemoryCacheSize, requestHeaders, cacheHandler, cacheHandlers, cacheLifeProfiles, nextConfigOutput, buildId, authInterrupts, sriEnabled }) { // this needs to be initialized before loadComponents otherwise // "use cache" could be missing it's cache handlers await createIncrementalCache({ dir, distDir, cacheHandler, cacheHandlers, requestHeaders, fetchCacheKeyPrefix, flushToDisk: isrFlushToDisk, cacheMaxMemorySize: maxMemoryCacheSize }); require('../../shared/lib/runtime-config.external').setConfig(config); setHttpClientAndAgentOptions({ httpAgentOptions }); const components = await loadComponents({ distDir, // In `pages/`, the page is the same as the pathname. page: page || pathname, isAppPath, isDev: true, sriEnabled }); if (isAppPath) { const segments = await collectSegments(components); const isRoutePPREnabled = isAppPageRouteModule(components.routeModule) && checkIsRoutePPREnabled(config.pprConfig, reduceAppConfig(segments)); const rootParamKeys = collectRootParamKeys(components); return buildAppStaticPaths({ dir, page: pathname, cacheComponents: config.cacheComponents, segments, distDir, requestHeaders, cacheHandler, cacheLifeProfiles, isrFlushToDisk, fetchCacheKeyPrefix, maxMemoryCacheSize, ComponentMod: components.ComponentMod, nextConfigOutput, isRoutePPREnabled, buildId, authInterrupts, rootParamKeys }); } else if (!components.getStaticPaths) { // We shouldn't get to this point since the worker should only be called for // SSG pages with getStaticPaths. throw Object.defineProperty(new InvariantError(`Failed to load page with getStaticPaths for ${pathname}`), "__NEXT_ERROR_CODE", { value: "E605", enumerable: false, configurable: true }); } return buildPagesStaticPaths({ page: pathname, getStaticPaths: components.getStaticPaths, configFileName: config.configFileName, locales, defaultLocale }); } //# sourceMappingURL=static-paths-worker.js.map