/
opt
/
canhelp
/
node_modules
/
next
/
dist
/
esm
/
server
/
dev
/
/opt/canhelp/node_modules/next/dist/esm/server/dev
mkdir
upload
Name
Size
Mode
Actions
browser-logs/
-
0755
rm
dev-indicator-server-state.js
120
0644
edit
dl
rm
dev-indicator-server-state.js.map
369
0644
edit
dl
rm
get-source-map-from-file.js
2883
0644
edit
dl
rm
get-source-map-from-file.js.map
4283
0644
edit
dl
rm
hot-middleware.js
9498
0644
edit
dl
rm
hot-middleware.js.map
14785
0644
edit
dl
rm
hot-reloader-turbopack.js
43223
0644
edit
dl
rm
hot-reloader-turbopack.js.map
66238
0644
edit
dl
rm
hot-reloader-types.js
1363
0644
edit
dl
rm
hot-reloader-types.js.map
5906
0644
edit
dl
rm
hot-reloader-webpack.js
64176
0644
edit
dl
rm
hot-reloader-webpack.js.map
98458
0644
edit
dl
rm
log-requests.js
4297
0644
edit
dl
rm
log-requests.js.map
8495
0644
edit
dl
rm
messages.js
149
0644
edit
dl
rm
messages.js.map
299
0644
edit
dl
rm
middleware-turbopack.js
15455
0644
edit
dl
rm
middleware-turbopack.js.map
25499
0644
edit
dl
rm
middleware-webpack.js
19169
0644
edit
dl
rm
middleware-webpack.js.map
33006
0644
edit
dl
rm
next-dev-server.js
33127
0644
edit
dl
rm
next-dev-server.js.map
57881
0644
edit
dl
rm
node-stack-frames.js
2051
0644
edit
dl
rm
node-stack-frames.js.map
3600
0644
edit
dl
rm
on-demand-entry-handler.js
29735
0644
edit
dl
rm
on-demand-entry-handler.js.map
49991
0644
edit
dl
rm
parse-version-info.js
2013
0644
edit
dl
rm
parse-version-info.js.map
3327
0644
edit
dl
rm
require-cache.js
1145
0644
edit
dl
rm
require-cache.js.map
2069
0644
edit
dl
rm
static-paths-worker.js
3555
0644
edit
dl
rm
static-paths-worker.js.map
7058
0644
edit
dl
rm
turbopack-utils.js
28377
0644
edit
dl
rm
turbopack-utils.js.map
47029
0644
edit
dl
rm
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
Save
cmd:
run