/opt/canhelp/node_modules/next/dist/build
NameSizeModeActions
adapter/-0755rm
analysis/-0755rm
babel/-0755rm
jest/-0755rm
manifests/-0755rm
next-config-ts/-0755rm
output/-0755rm
polyfills/-0755rm
segment-config/-0755rm
static-paths/-0755rm
swc/-0755rm
templates/-0755rm
turbopack-build/-0755rm
turborepo-access-trace/-0755rm
webpack/-0755rm
webpack-build/-0755rm
webpack-config-rules/-0755rm
after-production-compile.d.ts4310644editdlrm
after-production-compile.js33390644editdlrm
after-production-compile.js.map31290644editdlrm
build-context.d.ts20570644editdlrm
build-context.js16030644editdlrm
build-context.js.map40420644editdlrm
collect-build-traces.d.ts7570644editdlrm
collect-build-traces.js242760644editdlrm
collect-build-traces.js.map355400644editdlrm
compiler.d.ts5430644editdlrm
compiler.js32620644editdlrm
compiler.js.map48020644editdlrm
create-compiler-aliases.d.ts13070644editdlrm
create-compiler-aliases.js270860644editdlrm
create-compiler-aliases.js.map399590644editdlrm
define-env.d.ts12590644editdlrm
define-env.js147490644editdlrm
define-env.js.map231420644editdlrm
deployment-id.d.ts690644editdlrm
deployment-id.js4660644editdlrm
deployment-id.js.map5230644editdlrm
duration-to-string.d.ts760644editdlrm
duration-to-string.js7580644editdlrm
duration-to-string.js.map11010644editdlrm
entries.d.ts82020644editdlrm
entries.js378860644editdlrm
entries.js.map620370644editdlrm
generate-build-id.d.ts1380644editdlrm
generate-build-id.js10060644editdlrm
generate-build-id.js.map12150644editdlrm
get-babel-config-file.d.ts770644editdlrm
get-babel-config-file.js8560644editdlrm
get-babel-config-file.js.map10980644editdlrm
get-babel-loader-config.d.ts17130644editdlrm
get-babel-loader-config.js35570644editdlrm
get-babel-loader-config.js.map48960644editdlrm
handle-entrypoints.d.ts4700644editdlrm
handle-entrypoints.js65600644editdlrm
handle-entrypoints.js.map71740644editdlrm
handle-externals.d.ts14150644editdlrm
handle-externals.js144260644editdlrm
handle-externals.js.map216040644editdlrm
index.d.ts93240644editdlrm
index.js1538270644editdlrm
index.js.map2263100644editdlrm
is-writeable.d.ts740644editdlrm
is-writeable.js6530644editdlrm
is-writeable.js.map6560644editdlrm
load-entrypoint.d.ts10090644editdlrm
load-entrypoint.js15200644editdlrm
load-entrypoint.js.map31070644editdlrm
load-jsconfig.d.ts5140644editdlrm
load-jsconfig.js56930644editdlrm
load-jsconfig.js.map65350644editdlrm
next-dir-paths.d.ts1610644editdlrm
next-dir-paths.js11200644editdlrm
next-dir-paths.js.map7350644editdlrm
normalize-catchall-routes.d.ts6090644editdlrm
normalize-catchall-routes.js40820644editdlrm
normalize-catchall-routes.js.map66120644editdlrm
page-extensions-type.d.ts390644editdlrm
page-extensions-type.js1300644editdlrm
page-extensions-type.js.map670644editdlrm
preview-key-utils.d.ts2060644editdlrm
preview-key-utils.js37110644editdlrm
preview-key-utils.js.map59200644editdlrm
progress.d.ts1200644editdlrm
progress.js47460644editdlrm
progress.js.map46250644editdlrm
rendering-mode.d.ts5060644editdlrm
rendering-mode.js8260644editdlrm
rendering-mode.js.map7210644editdlrm
spinner.d.ts2180644editdlrm
spinner.js46630644editdlrm
spinner.js.map49780644editdlrm
type-check.d.ts5700644editdlrm
type-check.js72260644editdlrm
type-check.js.map92270644editdlrm
utils.d.ts87460644editdlrm
utils.js604000644editdlrm
utils.js.map959230644editdlrm
webpack-config.d.ts47890644editdlrm
webpack-config.js1137040644editdlrm
webpack-config.js.map1582530644editdlrm
worker.d.ts1720644editdlrm
worker.js8900644editdlrm
worker.js.map5230644editdlrm
write-build-id.d.ts870644editdlrm
write-build-id.js5590644editdlrm
write-build-id.js.map7180644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/build/normalize-catchall-routes.js (4082B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "normalizeCatchAllRoutes", { enumerable: true, get: function() { return normalizeCatchAllRoutes; } }); const _interceptionroutes = require("../shared/lib/router/utils/interception-routes"); const _apppathnamenormalizer = require("../server/normalizers/built/app/app-pathname-normalizer"); function normalizeCatchAllRoutes(appPaths, normalizer = new _apppathnamenormalizer.AppPathnameNormalizer()) { const catchAllRoutes = [ ...new Set(Object.values(appPaths).flat().filter(isCatchAllRoute)// Sorting is important because we want to match the most specific path. .sort((a, b)=>b.split('/').length - a.split('/').length)) ]; // interception routes should only be matched by a single entrypoint // we don't want to push a catch-all route to an interception route // because it would mean the interception would be handled by the wrong page component const filteredAppPaths = Object.keys(appPaths).filter((route)=>!(0, _interceptionroutes.isInterceptionRouteAppPath)(route)); for (const appPath of filteredAppPaths){ for (const catchAllRoute of catchAllRoutes){ const normalizedCatchAllRoute = normalizer.normalize(catchAllRoute); const normalizedCatchAllRouteBasePath = normalizedCatchAllRoute.slice(0, normalizedCatchAllRoute.search(catchAllRouteRegex)); if (// check if the appPath could match the catch-all appPath.startsWith(normalizedCatchAllRouteBasePath) && // check if there's not already a slot value that could match the catch-all !appPaths[appPath].some((path)=>hasMatchedSlots(path, catchAllRoute))) { // optional catch-all routes are not currently supported, but leaving this logic in place // for when they are eventually supported. if (isOptionalCatchAll(catchAllRoute)) { // optional catch-all routes should match both the root segment and any segment after it // for example, `/[[...slug]]` should match `/` and `/foo` and `/foo/bar` appPaths[appPath].push(catchAllRoute); } else if (isCatchAll(catchAllRoute)) { // regular catch-all (single bracket) should only match segments after it // for example, `/[...slug]` should match `/foo` and `/foo/bar` but not `/` if (normalizedCatchAllRouteBasePath !== appPath) { appPaths[appPath].push(catchAllRoute); } } } } } } function hasMatchedSlots(path1, path2) { const slots1 = path1.split('/').filter(isMatchableSlot); const slots2 = path2.split('/').filter(isMatchableSlot); // if the catch-all route does not have the same number of slots as the app path, it can't match if (slots1.length !== slots2.length) return false; // compare the slots in both paths. For there to be a match, each slot must be the same for(let i = 0; i < slots1.length; i++){ if (slots1[i] !== slots2[i]) return false; } return true; } /** * Returns true for slots that should be considered when checking for match compatibility. * Excludes children slots because these are similar to having a segment-level `page` * which would cause a slot length mismatch when comparing it to a catch-all route. */ function isMatchableSlot(segment) { return segment.startsWith('@') && segment !== '@children'; } const catchAllRouteRegex = /\[?\[\.\.\./; function isCatchAllRoute(pathname) { // Optional catch-all slots are not currently supported, and as such they are not considered when checking for match compatability. return !isOptionalCatchAll(pathname) && isCatchAll(pathname); } function isOptionalCatchAll(pathname) { return pathname.includes('[[...'); } function isCatchAll(pathname) { return pathname.includes('[...'); } //# sourceMappingURL=normalize-catchall-routes.js.map