/opt/canhelp/node_modules/next/dist/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.d.ts980644editdlrm
accept-header.js40620644editdlrm
accept-header.js.map64740644editdlrm
base-server.d.ts148180644editdlrm
base-server.js1017700644editdlrm
base-server.js.map1626830644editdlrm
body-streams.d.ts4740644editdlrm
body-streams.js36550644editdlrm
body-streams.js.map54420644editdlrm
cache-dir.d.ts820644editdlrm
cache-dir.js7570644editdlrm
cache-dir.js.map7030644editdlrm
capsize-font-metrics.json43016220644editdlrm
ci-info.d.ts1240644editdlrm
ci-info.js11420644editdlrm
ci-info.js.map13140644editdlrm
client-component-renderer-logger.d.ts4050644editdlrm
client-component-renderer-logger.js22870644editdlrm
client-component-renderer-logger.js.map30360644editdlrm
config-schema.d.ts1510644editdlrm
config-schema.js303360644editdlrm
config-schema.js.map567480644editdlrm
config-shared.d.ts492800644editdlrm
config-shared.js72780644editdlrm
config-shared.js.map580640644editdlrm
config-utils.d.ts490644editdlrm
config-utils.js58880644editdlrm
config-utils.js.map66000644editdlrm
config.d.ts11590644editdlrm
config.js743130644editdlrm
config.js.map995600644editdlrm
create-deduped-by-callsite-server-error-logger.d.ts5910644editdlrm
create-deduped-by-callsite-server-error-logger.js35840644editdlrm
create-deduped-by-callsite-server-error-logger.js.map36670644editdlrm
crypto-utils.d.ts1710644editdlrm
crypto-utils.js30260644editdlrm
crypto-utils.js.map43690644editdlrm
dynamic-rendering-utils.d.ts4250644editdlrm
dynamic-rendering-utils.js33880644editdlrm
dynamic-rendering-utils.js.map49390644editdlrm
font-utils.d.ts1770644editdlrm
font-utils.js17760644editdlrm
font-utils.js.map30600644editdlrm
get-app-route-from-entrypoint.d.ts850644editdlrm
get-app-route-from-entrypoint.js8320644editdlrm
get-app-route-from-entrypoint.js.map8650644editdlrm
get-page-files.d.ts5360644editdlrm
get-page-files.js8070644editdlrm
get-page-files.js.map16920644editdlrm
get-route-from-entrypoint.d.ts970644editdlrm
get-route-from-entrypoint.js12450644editdlrm
get-route-from-entrypoint.js.map14150644editdlrm
htmlescape.d.ts1100644editdlrm
htmlescape.js9860644editdlrm
htmlescape.js.map10000644editdlrm
image-optimizer.d.ts46920644editdlrm
image-optimizer.js370660644editdlrm
image-optimizer.js.map555230644editdlrm
internal-utils.d.ts2230644editdlrm
internal-utils.js11270644editdlrm
internal-utils.js.map13470644editdlrm
load-components.d.ts29880644editdlrm
load-components.js70160644editdlrm
load-components.js.map131700644editdlrm
load-default-error-components.d.ts13520644editdlrm
load-default-error-components.js18870644editdlrm
load-default-error-components.js.map38260644editdlrm
load-manifest.external.d.ts18080644editdlrm
load-manifest.external.js30510644editdlrm
load-manifest.external.js.map58270644editdlrm
match-bundle.d.ts820644editdlrm
match-bundle.js6860644editdlrm
match-bundle.js.map7180644editdlrm
next-server.d.ts114480644editdlrm
next-server.js698440644editdlrm
next-server.js.map1100190644editdlrm
next-typescript.d.ts470644editdlrm
next-typescript.js3180644editdlrm
next-typescript.js.map2220644editdlrm
next.d.ts36460644editdlrm
next.js157070644editdlrm
next.js.map268160644editdlrm
node-environment-baseline.d.ts00644editdlrm
node-environment-baseline.js8900644editdlrm
node-environment-baseline.js.map15550644editdlrm
node-environment.d.ts2870644editdlrm
node-environment.js6480644editdlrm
node-environment.js.map10650644editdlrm
node-polyfill-crypto.d.ts00644editdlrm
node-polyfill-crypto.js5580644editdlrm
node-polyfill-crypto.js.map10140644editdlrm
optimize-amp.d.ts780644editdlrm
optimize-amp.js5490644editdlrm
optimize-amp.js.map8390644editdlrm
patch-error-inspect.d.ts4670644editdlrm
patch-error-inspect.js196530644editdlrm
patch-error-inspect.js.map285010644editdlrm
pipe-readable.d.ts2910644editdlrm
pipe-readable.js55980644editdlrm
pipe-readable.js.map76770644editdlrm
post-process.d.ts3720644editdlrm
post-process.js20060644editdlrm
post-process.js.map39830644editdlrm
ReactDOMServerPages.d.ts380644editdlrm
ReactDOMServerPages.js5980644editdlrm
ReactDOMServerPages.js.map9570644editdlrm
render-result.d.ts62410644editdlrm
render-result.js75550644editdlrm
render-result.js.map142430644editdlrm
render.d.ts48870644editdlrm
render.js557840644editdlrm
render.js.map850560644editdlrm
request-meta.d.ts80310644editdlrm
request-meta.js14650644editdlrm
request-meta.js.map94610644editdlrm
require-hook.d.ts2660644editdlrm
require-hook.js28400644editdlrm
require-hook.js.map44530644editdlrm
require.d.ts3770644editdlrm
require.js39220644editdlrm
require.js.map60480644editdlrm
revalidation-utils.d.ts5410644editdlrm
revalidation-utils.js33410644editdlrm
revalidation-utils.js.map57330644editdlrm
route-kind.d.ts7200644editdlrm
route-kind.js10290644editdlrm
route-kind.js.map9370644editdlrm
send-payload.d.ts5970644editdlrm
send-payload.js28490644editdlrm
send-payload.js.map42140644editdlrm
send-response.d.ts4200644editdlrm
send-response.js30650644editdlrm
send-response.js.map45590644editdlrm
serve-static.d.ts4030644editdlrm
serve-static.js21100644editdlrm
serve-static.js.map26800644editdlrm
server-route-utils.d.ts1970644editdlrm
server-route-utils.js11300644editdlrm
server-route-utils.js.map19350644editdlrm
server-utils.d.ts31340644editdlrm
server-utils.js165420644editdlrm
server-utils.js.map260640644editdlrm
setup-http-agent-env.d.ts1720644editdlrm
setup-http-agent-env.js10500644editdlrm
setup-http-agent-env.js.map14060644editdlrm
utils.d.ts3320644editdlrm
utils.js32080644editdlrm
utils.js.map41810644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/server/load-components.js (7016B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { evalManifestWithRetries: null, loadComponents: null, loadManifestWithRetries: null, tryLoadManifestWithRetries: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { evalManifestWithRetries: function() { return evalManifestWithRetries; }, loadComponents: function() { return loadComponents; }, loadManifestWithRetries: function() { return loadManifestWithRetries; }, tryLoadManifestWithRetries: function() { return tryLoadManifestWithRetries; } }); const _constants = require("../shared/lib/constants"); const _path = require("path"); const _require = require("./require"); const _interopdefault = require("../lib/interop-default"); const _tracer = require("./lib/trace/tracer"); const _constants1 = require("./lib/trace/constants"); const _loadmanifestexternal = require("./load-manifest.external"); const _wait = require("../lib/wait"); const _encryptionutils = require("./app-render/encryption-utils"); const _actionutils = require("./app-render/action-utils"); const _normalizepagepath = require("../shared/lib/page-path/normalize-page-path"); const _ismetadataroute = require("../lib/metadata/is-metadata-route"); async function loadManifestWithRetries(manifestPath, attempts = 3) { while(true){ try { return (0, _loadmanifestexternal.loadManifest)(manifestPath); } catch (err) { attempts--; if (attempts <= 0) throw err; await (0, _wait.wait)(100); } } } async function tryLoadManifestWithRetries(manifestPath, attempts = 3) { try { return await loadManifestWithRetries(manifestPath, attempts); } catch (err) { return undefined; } } async function evalManifestWithRetries(manifestPath, attempts = 3) { while(true){ try { return (0, _loadmanifestexternal.evalManifest)(manifestPath); } catch (err) { attempts--; if (attempts <= 0) throw err; await (0, _wait.wait)(100); } } } async function tryLoadClientReferenceManifest(manifestPath, entryName, attempts) { try { const context = await evalManifestWithRetries(manifestPath, attempts); return context.__RSC_MANIFEST[entryName]; } catch (err) { return undefined; } } async function loadComponentsImpl({ distDir, page, isAppPath, isDev, sriEnabled }) { let DocumentMod = {}; let AppMod = {}; if (!isAppPath) { ; [DocumentMod, AppMod] = await Promise.all([ (0, _require.requirePage)('/_document', distDir, false), (0, _require.requirePage)('/_app', distDir, false) ]); } // In dev mode we retry loading a manifest file to handle a race condition // that can occur while app and pages are compiling at the same time, and the // build-manifest is still being written to disk while an app path is // attempting to load. const manifestLoadAttempts = isDev ? 3 : 1; let reactLoadableManifestPath; if (!process.env.TURBOPACK) { reactLoadableManifestPath = (0, _path.join)(distDir, _constants.REACT_LOADABLE_MANIFEST); } else if (isAppPath) { reactLoadableManifestPath = (0, _path.join)(distDir, 'server', 'app', page, _constants.REACT_LOADABLE_MANIFEST); } else { reactLoadableManifestPath = (0, _path.join)(distDir, 'server', 'pages', (0, _normalizepagepath.normalizePagePath)(page), _constants.REACT_LOADABLE_MANIFEST); } // Make sure to avoid loading the manifest for static metadata routes for better performance. const hasClientManifest = !(0, _ismetadataroute.isStaticMetadataRoute)(page); // Load the manifest files first // // Loading page-specific manifests shouldn't throw an error if the manifest couldn't be found, so // that the `requirePage` call below will throw the correct error in that case // (a `PageNotFoundError`). const [buildManifest, reactLoadableManifest, dynamicCssManifest, clientReferenceManifest, serverActionsManifest, subresourceIntegrityManifest] = await Promise.all([ loadManifestWithRetries((0, _path.join)(distDir, _constants.BUILD_MANIFEST), manifestLoadAttempts), tryLoadManifestWithRetries(reactLoadableManifestPath, manifestLoadAttempts), // This manifest will only exist in Pages dir && Production && Webpack. isAppPath || process.env.TURBOPACK ? undefined : loadManifestWithRetries((0, _path.join)(distDir, `${_constants.DYNAMIC_CSS_MANIFEST}.json`), manifestLoadAttempts).catch(()=>undefined), isAppPath && hasClientManifest ? tryLoadClientReferenceManifest((0, _path.join)(distDir, 'server', 'app', page.replace(/%5F/g, '_') + '_' + _constants.CLIENT_REFERENCE_MANIFEST + '.js'), page.replace(/%5F/g, '_'), manifestLoadAttempts) : undefined, isAppPath ? loadManifestWithRetries((0, _path.join)(distDir, 'server', _constants.SERVER_REFERENCE_MANIFEST + '.json'), manifestLoadAttempts).catch(()=>null) : null, sriEnabled ? loadManifestWithRetries((0, _path.join)(distDir, 'server', _constants.SUBRESOURCE_INTEGRITY_MANIFEST + '.json')).catch(()=>undefined) : undefined ]); // Before requiring the actual page module, we have to set the reference // manifests to our global store so Server Action's encryption util can access // to them at the top level of the page module. if (serverActionsManifest && clientReferenceManifest) { (0, _encryptionutils.setReferenceManifestsSingleton)({ page, clientReferenceManifest, serverActionsManifest, serverModuleMap: (0, _actionutils.createServerModuleMap)({ serverActionsManifest }) }); } const ComponentMod = await (0, _require.requirePage)(page, distDir, isAppPath); const Component = (0, _interopdefault.interopDefault)(ComponentMod); const Document = (0, _interopdefault.interopDefault)(DocumentMod); const App = (0, _interopdefault.interopDefault)(AppMod); const { getServerSideProps, getStaticProps, getStaticPaths, routeModule } = ComponentMod; return { App, Document, Component, buildManifest, subresourceIntegrityManifest, reactLoadableManifest: reactLoadableManifest || {}, dynamicCssManifest, pageConfig: ComponentMod.config || {}, ComponentMod, getServerSideProps, getStaticProps, getStaticPaths, clientReferenceManifest, serverActionsManifest, isAppPath, page, routeModule }; } const loadComponents = (0, _tracer.getTracer)().wrap(_constants1.LoadComponentsSpan.loadComponents, loadComponentsImpl); //# sourceMappingURL=load-components.js.map