/opt/canhelp/node_modules/next/dist/esm/server
NameSizeModeActions
after/-0755rm
api-utils/-0755rm
app-render/-0755rm
async-storage/-0755rm
base-http/-0755rm
dev/-0755rm
instrumentation/-0755rm
lib/-0755rm
node-environment-extensions/-0755rm
normalizers/-0755rm
og/-0755rm
request/-0755rm
response-cache/-0755rm
resume-data-cache/-0755rm
route-definitions/-0755rm
route-matcher-managers/-0755rm
route-matcher-providers/-0755rm
route-matchers/-0755rm
route-matches/-0755rm
route-modules/-0755rm
stream-utils/-0755rm
typescript/-0755rm
use-cache/-0755rm
web/-0755rm
accept-header.js38520644editdlrm
accept-header.js.map64540644editdlrm
base-server.js965210644editdlrm
base-server.js.map1621330644editdlrm
body-streams.js29790644editdlrm
body-streams.js.map54080644editdlrm
cache-dir.js3240644editdlrm
cache-dir.js.map6980644editdlrm
ci-info.js6560644editdlrm
ci-info.js.map13170644editdlrm
client-component-renderer-logger.js17390644editdlrm
client-component-renderer-logger.js.map29840644editdlrm
config-schema.js273500644editdlrm
config-schema.js.map541600644editdlrm
config-shared.js66020644editdlrm
config-shared.js.map580730644editdlrm
config-utils.js56760644editdlrm
config-utils.js.map65820644editdlrm
config.js714880644editdlrm
config.js.map996810644editdlrm
create-deduped-by-callsite-server-error-logger.js23300644editdlrm
create-deduped-by-callsite-server-error-logger.js.map36410644editdlrm
crypto-utils.js23300644editdlrm
crypto-utils.js.map42990644editdlrm
dynamic-rendering-utils.js29840644editdlrm
dynamic-rendering-utils.js.map48830644editdlrm
font-utils.js15540644editdlrm
font-utils.js.map30730644editdlrm
get-app-route-from-entrypoint.js4520644editdlrm
get-app-route-from-entrypoint.js.map8520644editdlrm
get-page-files.js5470644editdlrm
get-page-files.js.map16990644editdlrm
get-route-from-entrypoint.js7940644editdlrm
get-route-from-entrypoint.js.map13980644editdlrm
htmlescape.js5100644editdlrm
htmlescape.js.map9610644editdlrm
image-optimizer.js334240644editdlrm
image-optimizer.js.map553920644editdlrm
internal-utils.js5780644editdlrm
internal-utils.js.map13080644editdlrm
load-components.js62050644editdlrm
load-components.js.map131850644editdlrm
load-default-error-components.js15560644editdlrm
load-default-error-components.js.map38870644editdlrm
load-manifest.external.js23080644editdlrm
load-manifest.external.js.map57630644editdlrm
match-bundle.js3200644editdlrm
match-bundle.js.map7050644editdlrm
next-server.js654510644editdlrm
next-server.js.map1101450644editdlrm
next-typescript.js910644editdlrm
next-typescript.js.map2150644editdlrm
next.js135400644editdlrm
next.js.map269300644editdlrm
node-environment-baseline.js8760644editdlrm
node-environment-baseline.js.map15540644editdlrm
node-environment.js7570644editdlrm
node-environment.js.map11650644editdlrm
node-polyfill-crypto.js5440644editdlrm
node-polyfill-crypto.js.map10130644editdlrm
optimize-amp.js3600644editdlrm
optimize-amp.js.map8230644editdlrm
patch-error-inspect.js175330644editdlrm
patch-error-inspect.js.map285930644editdlrm
pipe-readable.js50210644editdlrm
pipe-readable.js.map77020644editdlrm
post-process.js18000644editdlrm
post-process.js.map39970644editdlrm
ReactDOMServerPages.d.ts380644editdlrm
ReactDOMServerPages.js5840644editdlrm
ReactDOMServerPages.js.map9560644editdlrm
render-result.js72040644editdlrm
render-result.js.map142390644editdlrm
render.js534870644editdlrm
render.js.map854420644editdlrm
request-meta.js13410644editdlrm
request-meta.js.map94330644editdlrm
require-hook.js22770644editdlrm
require-hook.js.map43970644editdlrm
require.js30420644editdlrm
require.js.map61070644editdlrm
revalidation-utils.js29170644editdlrm
revalidation-utils.js.map57080644editdlrm
route-kind.js8290644editdlrm
route-kind.js.map9270644editdlrm
send-payload.js21740644editdlrm
send-payload.js.map42120644editdlrm
send-response.js30400644editdlrm
send-response.js.map45980644editdlrm
serve-static.js13340644editdlrm
serve-static.js.map26030644editdlrm
server-route-utils.js10610644editdlrm
server-route-utils.js.map19990644editdlrm
server-utils.js153150644editdlrm
server-utils.js.map261390644editdlrm
setup-http-agent-env.js8320644editdlrm
setup-http-agent-env.js.map14390644editdlrm
utils.js26720644editdlrm
utils.js.map41390644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/esm/server/require.js.map (6107B)
{"version":3,"sources":["../../src/server/require.ts"],"sourcesContent":["import path from 'path'\nimport {\n PAGES_MANIFEST,\n SERVER_DIRECTORY,\n APP_PATHS_MANIFEST,\n} from '../shared/lib/constants'\nimport { normalizeLocalePath } from '../shared/lib/i18n/normalize-locale-path'\nimport { normalizePagePath } from '../shared/lib/page-path/normalize-page-path'\nimport { denormalizePagePath } from '../shared/lib/page-path/denormalize-page-path'\nimport type { PagesManifest } from '../build/webpack/plugins/pages-manifest-plugin'\nimport { PageNotFoundError, MissingStaticPage } from '../shared/lib/utils'\nimport { LRUCache } from '../server/lib/lru-cache'\nimport { loadManifest } from './load-manifest.external'\nimport { promises } from 'fs'\n\nconst isDev = process.env.NODE_ENV === 'development'\nconst pagePathCache = !isDev ? new LRUCache(1000) : null\n\nexport function getMaybePagePath(\n page: string,\n distDir: string,\n locales: readonly string[] | undefined,\n isAppPath: boolean\n): string | null {\n const cacheKey = `${page}:${distDir}:${locales}:${isAppPath}`\n\n let pagePath = pagePathCache?.get(cacheKey)\n\n // If we have a cached path, we can return it directly.\n if (pagePath) return pagePath\n\n const serverBuildPath = path.join(distDir, SERVER_DIRECTORY)\n let appPathsManifest: undefined | PagesManifest\n\n if (isAppPath) {\n appPathsManifest = loadManifest(\n path.join(serverBuildPath, APP_PATHS_MANIFEST),\n !isDev\n ) as PagesManifest\n }\n const pagesManifest = loadManifest(\n path.join(serverBuildPath, PAGES_MANIFEST),\n !isDev\n ) as PagesManifest\n\n try {\n page = denormalizePagePath(normalizePagePath(page))\n } catch (err) {\n console.error(err)\n throw new PageNotFoundError(page)\n }\n\n const checkManifest = (manifest: PagesManifest) => {\n let curPath = manifest[page]\n\n if (!manifest[curPath] && locales) {\n const manifestNoLocales: typeof pagesManifest = {}\n\n for (const key of Object.keys(manifest)) {\n manifestNoLocales[normalizeLocalePath(key, locales).pathname] =\n pagesManifest[key]\n }\n curPath = manifestNoLocales[page]\n }\n return curPath\n }\n\n if (appPathsManifest) {\n pagePath = checkManifest(appPathsManifest)\n }\n\n if (!pagePath) {\n pagePath = checkManifest(pagesManifest)\n }\n\n if (!pagePath) {\n pagePathCache?.set(cacheKey, null)\n return null\n }\n\n pagePath = path.join(serverBuildPath, pagePath)\n\n pagePathCache?.set(cacheKey, pagePath)\n return pagePath\n}\n\nexport function getPagePath(\n page: string,\n distDir: string,\n locales: string[] | undefined,\n isAppPath: boolean\n): string {\n const pagePath = getMaybePagePath(page, distDir, locales, isAppPath)\n\n if (!pagePath) {\n throw new PageNotFoundError(page)\n }\n\n return pagePath\n}\n\nexport async function requirePage(\n page: string,\n distDir: string,\n isAppPath: boolean\n): Promise {\n const pagePath = getPagePath(page, distDir, undefined, isAppPath)\n if (pagePath.endsWith('.html')) {\n return promises.readFile(pagePath, 'utf8').catch((err) => {\n throw new MissingStaticPage(page, err.message)\n })\n }\n\n const mod = process.env.NEXT_MINIMAL\n ? // @ts-ignore\n __non_webpack_require__(pagePath)\n : require(pagePath)\n return mod\n}\n"],"names":["path","PAGES_MANIFEST","SERVER_DIRECTORY","APP_PATHS_MANIFEST","normalizeLocalePath","normalizePagePath","denormalizePagePath","PageNotFoundError","MissingStaticPage","LRUCache","loadManifest","promises","isDev","process","env","NODE_ENV","pagePathCache","getMaybePagePath","page","distDir","locales","isAppPath","cacheKey","pagePath","get","serverBuildPath","join","appPathsManifest","pagesManifest","err","console","error","checkManifest","manifest","curPath","manifestNoLocales","key","Object","keys","pathname","set","getPagePath","requirePage","undefined","endsWith","readFile","catch","message","mod","NEXT_MINIMAL","__non_webpack_require__","require"],"mappings":"AAAA,OAAOA,UAAU,OAAM;AACvB,SACEC,cAAc,EACdC,gBAAgB,EAChBC,kBAAkB,QACb,0BAAyB;AAChC,SAASC,mBAAmB,QAAQ,2CAA0C;AAC9E,SAASC,iBAAiB,QAAQ,8CAA6C;AAC/E,SAASC,mBAAmB,QAAQ,gDAA+C;AAEnF,SAASC,iBAAiB,EAAEC,iBAAiB,QAAQ,sBA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