/home/techb158/balavpn.abdallabala.com/node_modules/next/dist/esm/server
NameSizeModeActions
after/-0777rm
api-utils/-0777rm
app-render/-0777rm
async-storage/-0777rm
base-http/-0777rm
dev/-0777rm
instrumentation/-0777rm
lib/-0777rm
node-environment-extensions/-0777rm
normalizers/-0777rm
og/-0777rm
request/-0777rm
response-cache/-0777rm
resume-data-cache/-0777rm
route-definitions/-0777rm
route-matcher-managers/-0777rm
route-matcher-providers/-0777rm
route-matchers/-0777rm
route-matches/-0777rm
route-modules/-0777rm
stream-utils/-0777rm
typescript/-0777rm
use-cache/-0777rm
web/-0777rm
accept-header.js38520666editdlrm
accept-header.js.map64540666editdlrm
base-server.js971990666editdlrm
base-server.js.map1631740666editdlrm
body-streams.js29790666editdlrm
body-streams.js.map54080666editdlrm
cache-dir.js3240666editdlrm
cache-dir.js.map6980666editdlrm
ci-info.js6560666editdlrm
ci-info.js.map13170666editdlrm
client-component-renderer-logger.js17390666editdlrm
client-component-renderer-logger.js.map29840666editdlrm
config-schema.js273500666editdlrm
config-schema.js.map541600666editdlrm
config-shared.js66020666editdlrm
config-shared.js.map580730666editdlrm
config-utils.js56760666editdlrm
config-utils.js.map65820666editdlrm
config.js714880666editdlrm
config.js.map996810666editdlrm
create-deduped-by-callsite-server-error-logger.js23300666editdlrm
create-deduped-by-callsite-server-error-logger.js.map36410666editdlrm
crypto-utils.js23300666editdlrm
crypto-utils.js.map42990666editdlrm
dynamic-rendering-utils.js29840666editdlrm
dynamic-rendering-utils.js.map48830666editdlrm
font-utils.js15540666editdlrm
font-utils.js.map30730666editdlrm
get-app-route-from-entrypoint.js4520666editdlrm
get-app-route-from-entrypoint.js.map8520666editdlrm
get-page-files.js5470666editdlrm
get-page-files.js.map16990666editdlrm
get-route-from-entrypoint.js7940666editdlrm
get-route-from-entrypoint.js.map13980666editdlrm
image-optimizer.js344020666editdlrm
image-optimizer.js.map565180666editdlrm
internal-utils.js5780666editdlrm
internal-utils.js.map13080666editdlrm
load-components.js62050666editdlrm
load-components.js.map131850666editdlrm
load-default-error-components.js15560666editdlrm
load-default-error-components.js.map38870666editdlrm
load-manifest.external.js23080666editdlrm
load-manifest.external.js.map57630666editdlrm
match-bundle.js3200666editdlrm
match-bundle.js.map7050666editdlrm
next-server.js656030666editdlrm
next-server.js.map1104480666editdlrm
next-typescript.js910666editdlrm
next-typescript.js.map2150666editdlrm
next.js135400666editdlrm
next.js.map269300666editdlrm
node-environment-baseline.js8760666editdlrm
node-environment-baseline.js.map15540666editdlrm
node-environment.js7570666editdlrm
node-environment.js.map11650666editdlrm
node-polyfill-crypto.js5440666editdlrm
node-polyfill-crypto.js.map10130666editdlrm
optimize-amp.js3600666editdlrm
optimize-amp.js.map8230666editdlrm
patch-error-inspect.js175330666editdlrm
patch-error-inspect.js.map285930666editdlrm
pipe-readable.js50210666editdlrm
pipe-readable.js.map77020666editdlrm
post-process.js18000666editdlrm
post-process.js.map39970666editdlrm
ReactDOMServerPages.d.ts380666editdlrm
ReactDOMServerPages.js5840666editdlrm
ReactDOMServerPages.js.map9560666editdlrm
render-result.js72040666editdlrm
render-result.js.map142390666editdlrm
render.js534870666editdlrm
render.js.map854420666editdlrm
request-meta.js13410666editdlrm
request-meta.js.map94330666editdlrm
require-hook.js22770666editdlrm
require-hook.js.map43970666editdlrm
require.js30420666editdlrm
require.js.map61070666editdlrm
revalidation-utils.js29170666editdlrm
revalidation-utils.js.map57080666editdlrm
route-kind.js8290666editdlrm
route-kind.js.map9270666editdlrm
send-payload.js21740666editdlrm
send-payload.js.map42120666editdlrm
send-response.js30400666editdlrm
send-response.js.map45980666editdlrm
serve-static.js13340666editdlrm
serve-static.js.map26030666editdlrm
server-route-utils.js10610666editdlrm
server-route-utils.js.map19990666editdlrm
server-utils.js153150666editdlrm
server-utils.js.map261390666editdlrm
setup-http-agent-env.js8320666editdlrm
setup-http-agent-env.js.map14390666editdlrm
utils.js26720666editdlrm
utils.js.map41390666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/next/dist/esm/server/load-components.js (6205B)
import { BUILD_MANIFEST, REACT_LOADABLE_MANIFEST, CLIENT_REFERENCE_MANIFEST, SERVER_REFERENCE_MANIFEST, DYNAMIC_CSS_MANIFEST, SUBRESOURCE_INTEGRITY_MANIFEST } from '../shared/lib/constants'; import { join } from 'path'; import { requirePage } from './require'; import { interopDefault } from '../lib/interop-default'; import { getTracer } from './lib/trace/tracer'; import { LoadComponentsSpan } from './lib/trace/constants'; import { evalManifest, loadManifest } from './load-manifest.external'; import { wait } from '../lib/wait'; import { setReferenceManifestsSingleton } from './app-render/encryption-utils'; import { createServerModuleMap } from './app-render/action-utils'; import { normalizePagePath } from '../shared/lib/page-path/normalize-page-path'; import { isStaticMetadataRoute } from '../lib/metadata/is-metadata-route'; /** * Load manifest file with retries, defaults to 3 attempts. */ export async function loadManifestWithRetries(manifestPath, attempts = 3) { while(true){ try { return loadManifest(manifestPath); } catch (err) { attempts--; if (attempts <= 0) throw err; await wait(100); } } } /** * Load manifest file with retries, defaults to 3 attempts, or return undefined. */ export async function tryLoadManifestWithRetries(manifestPath, attempts = 3) { try { return await loadManifestWithRetries(manifestPath, attempts); } catch (err) { return undefined; } } /** * Load manifest file with retries, defaults to 3 attempts. */ export async function evalManifestWithRetries(manifestPath, attempts = 3) { while(true){ try { return evalManifest(manifestPath); } catch (err) { attempts--; if (attempts <= 0) throw err; await 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([ requirePage('/_document', distDir, false), 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 = join(distDir, REACT_LOADABLE_MANIFEST); } else if (isAppPath) { reactLoadableManifestPath = join(distDir, 'server', 'app', page, REACT_LOADABLE_MANIFEST); } else { reactLoadableManifestPath = join(distDir, 'server', 'pages', normalizePagePath(page), REACT_LOADABLE_MANIFEST); } // Make sure to avoid loading the manifest for static metadata routes for better performance. const hasClientManifest = !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(join(distDir, BUILD_MANIFEST), manifestLoadAttempts), tryLoadManifestWithRetries(reactLoadableManifestPath, manifestLoadAttempts), // This manifest will only exist in Pages dir && Production && Webpack. isAppPath || process.env.TURBOPACK ? undefined : loadManifestWithRetries(join(distDir, `${DYNAMIC_CSS_MANIFEST}.json`), manifestLoadAttempts).catch(()=>undefined), isAppPath && hasClientManifest ? tryLoadClientReferenceManifest(join(distDir, 'server', 'app', page.replace(/%5F/g, '_') + '_' + CLIENT_REFERENCE_MANIFEST + '.js'), page.replace(/%5F/g, '_'), manifestLoadAttempts) : undefined, isAppPath ? loadManifestWithRetries(join(distDir, 'server', SERVER_REFERENCE_MANIFEST + '.json'), manifestLoadAttempts).catch(()=>null) : null, sriEnabled ? loadManifestWithRetries(join(distDir, 'server', 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) { setReferenceManifestsSingleton({ page, clientReferenceManifest, serverActionsManifest, serverModuleMap: createServerModuleMap({ serverActionsManifest }) }); } const ComponentMod = await requirePage(page, distDir, isAppPath); const Component = interopDefault(ComponentMod); const Document = interopDefault(DocumentMod); const App = 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 }; } export const loadComponents = getTracer().wrap(LoadComponentsSpan.loadComponents, loadComponentsImpl); //# sourceMappingURL=load-components.js.map