This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
eternos/frontend/style/node_modules/next/dist/esm/server/get-app-route-from-entrypoint.js
2025-01-11 09:54:09 +03:00

15 lines
452 B
JavaScript

import matchBundle from "./match-bundle";
// matches app/:path*.js
const APP_ROUTE_NAME_REGEX = /^app[/\\](.*)$/;
export default function getAppRouteFromEntrypoint(entryFile) {
const pagePath = matchBundle(APP_ROUTE_NAME_REGEX, entryFile);
if (typeof pagePath === "string" && !pagePath) {
return "/";
}
if (!pagePath) {
return null;
}
return pagePath;
}
//# sourceMappingURL=get-app-route-from-entrypoint.js.map